All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.jigsaw.proxy.ForwardFrame
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.proxy.ForwardFrame
- public class ForwardFrame
- extends HTTPFrame
-
ATTR_LOCAL_ROOT
- Attribute index - The local resource, if server-wide request.
-
ATTR_RECEIVED_BY
- Attribute index - The received by attribute of that proxy.
-
ATTR_TRACEREQ
- Attribute index - Try to trace how the request has been processed.
-
cache_hits
- Statistics - Number of hits.
-
cache_icps
- Statistics - Number of ICP redirects.
-
cache_misses
- Statistics - Number of misses.
-
cache_nocache
- Statistics - Number of requests that didn't use cache.
-
cache_retrievals
- Statistics - Number of successfull revalidations.
-
cache_revalidations
- Statistics - Number of successfull revalidations.
-
lroot
- Get the local root resource to use for internal requests.
-
manager
- The HttpManager we use.
-
reqcount
- Statistics - Number of requests handled.
-
reqerred
- Statistics - Errors.
-
ForwardFrame()
-
-
dupReply(Request, Reply)
- Duplicate the given client side reply into a server side one.
-
dupRequest(Request)
- Duplicate a server side request into a client side request.
-
getLocalRoot()
- Get the local root resource name.
-
getLocalRootResource()
-
-
getReceivedBy()
- Get the received by attribute value.
-
getTraceRequest()
- Should we try to trace request path ?
-
getVia()
-
-
initialize(Object[])
- Initialize the frames of that framed resource.
-
notifyUnload()
- This resource is being unloaded.
-
perform(RequestInterface)
- Perform the given proxied request.
-
registerResource(FramedResource)
- companion to initialize, called after the register
-
updateStatistics(Request)
- Update relevant statistics (kind of a hack).
ATTR_LOCAL_ROOT
protected static int ATTR_LOCAL_ROOT
- Attribute index - The local resource, if server-wide request.
ATTR_RECEIVED_BY
protected static int ATTR_RECEIVED_BY
- Attribute index - The received by attribute of that proxy.
ATTR_TRACEREQ
protected static int ATTR_TRACEREQ
- Attribute index - Try to trace how the request has been processed.
manager
protected HttpManager manager
- The HttpManager we use.
cache_hits
public int cache_hits
- Statistics - Number of hits.
cache_misses
public int cache_misses
- Statistics - Number of misses.
cache_revalidations
public int cache_revalidations
- Statistics - Number of successfull revalidations.
cache_retrievals
public int cache_retrievals
- Statistics - Number of successfull revalidations.
cache_nocache
public int cache_nocache
- Statistics - Number of requests that didn't use cache.
reqcount
public int reqcount
- Statistics - Number of requests handled.
cache_icps
public int cache_icps
- Statistics - Number of ICP redirects.
reqerred
public int reqerred
- Statistics - Errors.
lroot
protected ResourceReference lroot
- Get the local root resource to use for internal requests.
ForwardFrame
public ForwardFrame()
getLocalRoot
public String getLocalRoot()
- Get the local root resource name.
getReceivedBy
public String getReceivedBy()
- Get the received by attribute value.
If this attribute is not defined, it will default to the name of the
host running the proxy.
- Returns:
- A String.
getTraceRequest
public boolean getTraceRequest()
- Should we try to trace request path ?
- Returns:
- A boolean.
getVia
public synchronized String getVia()
getLocalRootResource
public synchronized ResourceReference getLocalRootResource()
updateStatistics
protected void updateStatistics(Request r)
- Update relevant statistics (kind of a hack).
dupRequest
protected Request dupRequest(Request request) throws HTTPException, IOException
- Duplicate a server side request into a client side request.
- Parameters:
- request - The server side request.
- Returns:
- A Client side request.
- Throws: HTTPException
- if processing the request failed.
- Throws: IOException
- if an IO error occurs.
dupReply
protected Reply dupReply(Request request,
Reply rep) throws HTTPException, IOException
- Duplicate the given client side reply into a server side one.
Perform any actions requested by HTTP/1.1.
- Parameters:
- request - The request ebing processed.
- reply - The reply to clone.
- Returns:
- A server-side Reply instance.
- Throws: HTTPException
- If some HTTP errors occured in the process.
- Throws: IOException
- If setting the streams failed.
perform
public ReplyInterface perform(RequestInterface ri) throws ProtocolException, ResourceException
- Perform the given proxied request.
- Parameters:
- request - The request to perform.
- filters - The set of filters to apply.
- Returns:
- A Reply instance.
- Throws: ProtocolException
- if processing
the request failed.
- Throws: ResourceException
- if the resource
got a fatal error.
- Overrides:
- perform in class HTTPFrame
notifyUnload
public synchronized void notifyUnload()
- This resource is being unloaded.
Tell the HttpManager to save any pending data to stable storage.
- Overrides:
- notifyUnload in class FramedResource
registerResource
public void registerResource(FramedResource resource)
- companion to initialize, called after the register
- Overrides:
- registerResource in class HTTPFrame
initialize
public void initialize(Object values[])
- Initialize the frames of that framed resource.
- Overrides:
- initialize in class FramedResource
All Packages Class Hierarchy This Package Previous Next Index