org.dspace.app.xmlui.utils
Class RequestInfo

java.lang.Object
  extended by org.dspace.app.xmlui.utils.RequestInfo

public class RequestInfo
extends Object

Stores information about an HTTP request. This is used so that the request can be replicated during a later request, once authentication has successfully occurred. This class is the same as found in the JSPUI however a few extra methods were added to remember the original path information (info,translated, uri, url, etc..) that coocoon needs inorder to be able to resume a request.

Version:
$Revision$
Author:
Robert Tansley, Scott Phillips

Constructor Summary
RequestInfo(javax.servlet.http.HttpServletRequest request)
          Construct a request info object storing information about the given request
 
Method Summary
 String getActualPath()
          Return the servlet path that this request is for.
 String getServletPath()
          Return the servlet path that this request is for.
 javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request)
          Wrap an incoming request to make it look like the request that the constructor was called with
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestInfo

public RequestInfo(javax.servlet.http.HttpServletRequest request)
Construct a request info object storing information about the given request

Parameters:
request - the request to get information from
Method Detail

getServletPath

public String getServletPath()
Return the servlet path that this request is for.


getActualPath

public String getActualPath()
Return the servlet path that this request is for.


wrapRequest

public javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request)
Wrap an incoming request to make it look like the request that the constructor was called with

Parameters:
request - the request to wrap
Returns:
a wrapper around the request passed into this method, wrapped so that it looks like the request passed into the constructor


Copyright © 2013 DuraSpace. All Rights Reserved.