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.


Variable Index

 o ATTR_HANDLE_PATHINFO
Attribute index - Should we also handle extra path infos ?
 o ATTR_LOCATION
Attribute index - The relocation location.
 o PATH_INFO
Name of the state to hold the PATH_INFO in the request.

Constructor Index

 o RelocateResource()

Method Index

 o checkHandlePathInfo()
 o get(Request)
Emit a redirect.
 o getLocation()
Get the location for the relocation
 o lookup(LookupState, LookupResult)
Register our filters, if any in the lookup result object.

Variables

 o PATH_INFO
 public static final String PATH_INFO
Name of the state to hold the PATH_INFO in the request.

 o ATTR_LOCATION
 protected static int ATTR_LOCATION
Attribute index - The relocation location.

 o ATTR_HANDLE_PATHINFO
 protected static int ATTR_HANDLE_PATHINFO
Attribute index - Should we also handle extra path infos ?

Constructors

 o RelocateResource
 public RelocateResource()

Methods

 o getLocation
 public String getLocation()
Get the location for the relocation

 o checkHandlePathInfo
 public boolean checkHandlePathInfo()
 o 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
 o 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