All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigsaw.resources.RelocateResource
java.lang.Object
|
+----w3c.tools.store.AttributeHolder
|
+----w3c.tools.store.Resource
|
+----w3c.jigsaw.resources.HTTPResource
|
+----w3c.jigsaw.resources.FilteredResource
|
+----w3c.jigsaw.resources.RelocateResource
- public class RelocateResource
- extends FilteredResource
This resource will always emit a relocation to some given URL.
-
ATTR_HANDLE_PATHINFO
- Attribute index - Should we also handle extra path infos ?
-
ATTR_LOCATION
- Attribute index - The relocation location.
-
PATH_INFO
- Name of the state to hold the PATH_INFO in the request.
-
RelocateResource()
-
-
checkHandlePathInfo()
-
-
get(Request)
- Emit a redirect.
-
getLocation()
- Get the location for the relocation
-
lookup(LookupState, LookupResult)
- Register our filters, if any in the lookup result object.
PATH_INFO
public static final String PATH_INFO
- Name of the state to hold the PATH_INFO in the request.
ATTR_LOCATION
protected static int ATTR_LOCATION
- Attribute index - The relocation location.
ATTR_HANDLE_PATHINFO
protected static int ATTR_HANDLE_PATHINFO
- Attribute index - Should we also handle extra path infos ?
RelocateResource
public RelocateResource()
getLocation
public String getLocation()
- Get the location for the relocation
checkHandlePathInfo
public boolean checkHandlePathInfo()
lookup
public boolean lookup(LookupState ls,
LookupResult lr) throws HTTPException
- Register our filters, if any in the lookup result object.
- Overrides:
- lookup in class FilteredResource
get
public Reply get(Request request) throws HTTPException
- Emit a redirect.
All GET requests are redirected toward the target location.
- Parameters:
- client - The client issuing the request.
- request - The request to handle.
- Throws: HTTPException
- If the request couldn't be handled.
- Overrides:
- get in class HTTPResource
All Packages Class Hierarchy This Package Previous Next Index