org.apache.wicket.request.resource
Class ContextRelativeResource

java.lang.Object
  extended by org.apache.wicket.request.resource.AbstractResource
      extended by org.apache.wicket.request.resource.ContextRelativeResource
All Implemented Interfaces:
Serializable, IResource

public class ContextRelativeResource
extends AbstractResource

Resource served from a file relative to the context root.

Author:
almaw
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.AbstractResource
AbstractResource.ResourceResponse, AbstractResource.WriteCallback
 
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource
IResource.Attributes
 
Constructor Summary
ContextRelativeResource(String pathRelativeToContextRoot)
          Construct.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
protected  AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
          Override this method to return a AbstractResource.ResourceResponse for the request.
 
Methods inherited from class org.apache.wicket.request.resource.AbstractResource
configureCache, respond, setResponseHeaders
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextRelativeResource

public ContextRelativeResource(String pathRelativeToContextRoot)
Construct.

Parameters:
pathRelativeToContextRoot -
Method Detail

newResourceResponse

protected AbstractResource.ResourceResponse newResourceResponse(IResource.Attributes attributes)
Description copied from class: AbstractResource
Override this method to return a AbstractResource.ResourceResponse for the request.

Specified by:
newResourceResponse in class AbstractResource
Parameters:
attributes - request attributes
Returns:
resource data instance

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.