    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.

##

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.

##

RelocateFrame()

##

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

##

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 ?

##

RelocateFrame

     public RelocateFrame()

##

getLocation

     public String getLocation()

  Get the location for the relocation

checkHandlePathInfo

     public boolean checkHandlePathInfo()

registerResource

     public void registerResource(FramedResource resource)

  Register a target resource.

  Overrides:
    registerResource in class HTTPFrame

lookupOther

     protected boolean lookupOther(LookupState ls,
                                   LookupResult lr) throws ProtocolException

  Overrides:
    lookupOther in class HTTPFrame

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