public class SimpleHttpRequest
extends org.apache.catalina.connector.Request
asyncContext, asyncSupported, attributes, authType, CACHED_POST_LEN, comet, connector, cookies, cookiesConverted, cookiesParsed, coyoteRequest, defaultLocale, event, facade, filterChain, formats, GMT_ZONE, inputBuffer, inputStream, internalDispatcherType, localAddr, locales, localesParsed, localName, localPort, mappingData, parameterMap, parametersParsed, parts, partsParseException, pathParameters, postData, reader, remoteAddr, remoteHost, remotePort, requestDispatcherPath, requestedSessionCookie, requestedSessionId, requestedSessionSSL, requestedSessionURL, response, secure, session, sm, sslAttributesParsed, subject, URIConverter, userPrincipal, usingInputStream, usingReader
Constructor and Description |
---|
SimpleHttpRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addHeader(String headerName,
String headerValue) |
void |
addParameter(String parameterName,
String parameterValue) |
int |
getContentLength() |
String |
getHeader(String headerName) |
String |
getMethod() |
String |
getParameter(String parameterName) |
String |
getQueryString() |
String |
getRemoteAddr() |
String |
getRemoteHost() |
int |
getRemotePort() |
String |
getRemoteUser() |
String |
getRequestURI() |
javax.servlet.http.HttpSession |
getSession() |
javax.servlet.http.HttpSession |
getSession(boolean create) |
Principal |
getUserPrincipal() |
static int |
nextRemotePort() |
static void |
resetRemotePort() |
void |
setContentLength(int length) |
void |
setMethod(String value) |
void |
setQueryString(String queryValue) |
void |
setRemoteAddr(String value) |
void |
setRemoteHost(String value) |
void |
setRemoteUser(String value) |
void |
setRequestURI(String value) |
void |
setUserPrincipal(Principal value) |
addCookie, addLocale, addPathParameter, authenticate, changeSessionId, changeSessionId, checkSwallowInput, clearCookies, clearEncoders, clearLocales, cometClose, convertCookies, createInputStream, doGetSession, finishRequest, getAsyncContext, getAttribute, getAttributeNames, getAuthType, getAvailable, getCharacterEncoding, getConnector, getContentLengthLong, getContentType, getContext, getContextPath, getCookies, getCoyoteRequest, getDateHeader, getDecodedRequestURI, getDecodedRequestURIMB, getDispatcherType, getEvent, getFilterChain, getHeaderNames, getHeaders, getHost, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMappingData, getNote, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathParameter, getPathTranslated, getPrincipal, getProtocol, getReader, getRealPath, getRequest, getRequestDispatcher, getRequestedSessionId, getRequestPathMB, getRequestURL, getResponse, getScheme, getServerCookies, getServerName, getServerPort, getServletContext, getServletPath, getSessionInternal, getSessionInternal, getStream, getURIConverter, getWrapper, isAlpha, isAsync, isAsyncCompleting, isAsyncDispatching, isAsyncStarted, isAsyncSupported, isComet, isFinished, isParametersParsed, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, login, logout, parseCookies, parseLocales, parseLocalesHeader, parseParameters, read, readChunkedPostBody, readPostBody, recycle, removeAttribute, removeNote, setAsyncSupported, setAttribute, setAuthType, setCharacterEncoding, setComet, setCometTimeout, setConnector, setContentType, setContext, setCoyoteRequest, setFilterChain, setLocalPort, setNote, setPathInfo, setRequestedSessionCookie, setRequestedSessionId, setRequestedSessionSSL, setRequestedSessionURL, setResponse, setSecure, setServerPort, setURIConverter, setWrapper, startAsync, startAsync, unescape, upgrade
public static int nextRemotePort()
public static void resetRemotePort()
public int getContentLength()
getContentLength
in interface javax.servlet.ServletRequest
getContentLength
in class org.apache.catalina.connector.Request
public String getHeader(String headerName)
getHeader
in interface javax.servlet.http.HttpServletRequest
getHeader
in class org.apache.catalina.connector.Request
public String getMethod()
getMethod
in interface javax.servlet.http.HttpServletRequest
getMethod
in class org.apache.catalina.connector.Request
public String getParameter(String parameterName)
getParameter
in interface javax.servlet.ServletRequest
getParameter
in class org.apache.catalina.connector.Request
public String getQueryString()
getQueryString
in interface javax.servlet.http.HttpServletRequest
getQueryString
in class org.apache.catalina.connector.Request
public String getRemoteAddr()
getRemoteAddr
in interface javax.servlet.ServletRequest
getRemoteAddr
in class org.apache.catalina.connector.Request
public String getRemoteHost()
getRemoteHost
in interface javax.servlet.ServletRequest
getRemoteHost
in class org.apache.catalina.connector.Request
public int getRemotePort()
getRemotePort
in interface javax.servlet.ServletRequest
getRemotePort
in class org.apache.catalina.connector.Request
public String getRemoteUser()
getRemoteUser
in interface javax.servlet.http.HttpServletRequest
getRemoteUser
in class org.apache.catalina.connector.Request
public String getRequestURI()
getRequestURI
in interface javax.servlet.http.HttpServletRequest
getRequestURI
in class org.apache.catalina.connector.Request
public javax.servlet.http.HttpSession getSession()
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class org.apache.catalina.connector.Request
public javax.servlet.http.HttpSession getSession(boolean create)
getSession
in interface javax.servlet.http.HttpServletRequest
getSession
in class org.apache.catalina.connector.Request
public Principal getUserPrincipal()
getUserPrincipal
in interface javax.servlet.http.HttpServletRequest
getUserPrincipal
in class org.apache.catalina.connector.Request
public void setContentLength(int length)
public void setMethod(String value)
public void setQueryString(String queryValue)
public void setRemoteAddr(String value)
setRemoteAddr
in class org.apache.catalina.connector.Request
public void setRemoteHost(String value)
setRemoteHost
in class org.apache.catalina.connector.Request
public void setRemoteUser(String value)
public void setRequestURI(String value)
public void setUserPrincipal(Principal value)
setUserPrincipal
in class org.apache.catalina.connector.Request
Copyright © 2010–2015 com.github.dblock. All rights reserved.