Esri Geoportal Server
1.0

com.esri.gpt.control.search
Class HttpServletRequestWrap

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by com.esri.gpt.control.search.HttpServletRequestWrap
All Implemented Interfaces:
HttpServletRequest, ServletRequest

public class HttpServletRequestWrap
extends HttpServletRequestWrapper

The Class HttpServletRequestWrap.


Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
HttpServletRequestWrap(HttpServletRequest request)
          Instantiates a new http servlet request wrap.
 
Method Summary
 String getParameter(String name)
          Gets the parameter.
 Map<String,String[]> getParameterMap()
          Gets the parameter map.
 Enumeration<String> getParameterNames()
          Gets the parameter names.
 String[] getParameterValues(String name)
          Gets the parameter values.
 String getQueryString()
          Gets the query string.
 String getRequestURI()
          Gets the request uri.
 StringBuffer getRequestURL()
          Gets the request url.
 String getRestRequestUrl()
          Gets the rest request url.
 void setRestRequestUrl(String restRequestUrl)
          Sets the rest request url.
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getRemoteUser, getRequestedSessionId, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

HttpServletRequestWrap

public HttpServletRequestWrap(HttpServletRequest request)
Instantiates a new http servlet request wrap.

Parameters:
request - the request
Method Detail

getRestRequestUrl

public String getRestRequestUrl()
Gets the rest request url.

Returns:
the rest request url (trimmed, never null)

setRestRequestUrl

public void setRestRequestUrl(String restRequestUrl)
Sets the rest request url.

Parameters:
restRequestUrl - the new rest request url

getRequestURI

public String getRequestURI()
Gets the request uri.

Specified by:
getRequestURI in interface HttpServletRequest
Overrides:
getRequestURI in class HttpServletRequestWrapper
Returns:
the request uri
See Also:
HttpServletRequestWrapper.getRequestURI()

getRequestURL

public StringBuffer getRequestURL()
Gets the request url.

Specified by:
getRequestURL in interface HttpServletRequest
Overrides:
getRequestURL in class HttpServletRequestWrapper
Returns:
the request url
See Also:
HttpServletRequestWrapper.getRequestURL()

getParameter

public String getParameter(String name)
Gets the parameter.

Specified by:
getParameter in interface ServletRequest
Overrides:
getParameter in class ServletRequestWrapper
Parameters:
name - the name
Returns:
the parameter
See Also:
ServletRequestWrapper.getParameter(java.lang.String)

getParameterMap

public Map<String,String[]> getParameterMap()
Gets the parameter map.

Specified by:
getParameterMap in interface ServletRequest
Overrides:
getParameterMap in class ServletRequestWrapper
Returns:
the parameter map
See Also:
ServletRequestWrapper.getParameterMap()

getParameterNames

public Enumeration<String> getParameterNames()
Gets the parameter names.

Specified by:
getParameterNames in interface ServletRequest
Overrides:
getParameterNames in class ServletRequestWrapper
Returns:
the parameter names
See Also:
ServletRequestWrapper.getParameterNames()

getParameterValues

public String[] getParameterValues(String name)
Gets the parameter values.

Specified by:
getParameterValues in interface ServletRequest
Overrides:
getParameterValues in class ServletRequestWrapper
Parameters:
name - the name
Returns:
the parameter values
See Also:
ServletRequestWrapper.getParameterValues(java.lang.String)

getQueryString

public String getQueryString()
Gets the query string.

Specified by:
getQueryString in interface HttpServletRequest
Overrides:
getQueryString in class HttpServletRequestWrapper
Returns:
the query string null if no querystring, else trimmed querystring
See Also:
HttpServletRequestWrapper.getQueryString()

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.