    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.

##

ATTR_LOCATION
  Attribute index - The relocation location.

##

RelocateResource()

##

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

##

ATTR_LOCATION

      protected static int ATTR_LOCATION

  Attribute index - The relocation location.

##

RelocateResource

      public RelocateResource()

##

getLocation

      public String getLocation()

  Get the location for the relocation

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