All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.frames.RelocateFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.frames.RelocateFrame

public class RelocateFrame
extends HTTPFrame
Emit a HTTP redirect.


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 RelocateFrame()

Method Index

 o checkHandlePathInfo()
 o getLocation()
Get the location for the relocation
 o getOtherResource(Request)
Emit a redirect.
 o lookupOther(LookupState, LookupResult)
 o registerResource(FramedResource)
Register a target resource.

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 RelocateFrame
 public RelocateFrame()

Methods

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

 o checkHandlePathInfo
 public boolean checkHandlePathInfo()
 o registerResource
 public void registerResource(FramedResource resource)
Register a target resource.

Overrides:
registerResource in class HTTPFrame
 o lookupOther
 protected boolean lookupOther(LookupState ls,
                               LookupResult lr) throws ProtocolException
Overrides:
lookupOther in class HTTPFrame
 o getOtherResource
 protected Reply getOtherResource(Request request) throws ProtocolException
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: ProtocolException
If the request couldn't be handled.
Overrides:
getOtherResource in class HTTPFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index