Class w3c.jigsaw.resources.RelocateResource
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.RelocateResource

java.lang.Object
   |
   +----w3c.jigsaw.resources.AttributeHolder
           |
           +----w3c.jigsaw.resources.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.RelocateResource

public class RelocateResource
extends HTTPResource
This resource will always emit a relocation to some given URL.

Variable Index

 o ATTR_LOCATION
Attribute index - The relocation location.

Constructor Index

 o RelocateResource()

Method Index

 o get(Request)
Emit a redirect.
 o getLocation()
Get the location for the relocation

Variables

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

Constructors

 o RelocateResource
  public RelocateResource()

Methods

 o getLocation
  public String getLocation()
Get the location for the relocation
 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