Method Summary |
|
public void | addHeader(String name, Object value) Add a header entry for the given name.
If there was no entry for that header name before,
the value will be used as-is. |
public void | addParameter(String name, String value) Add a single value for the specified HTTP parameter. |
public void | addParameter(String name, String[] values) Add an array of values for the specified HTTP parameter. |
public void | addPreferredLocale(Locale locale) Add a new preferred locale, before any existing locales. |
public void | addRole(String role) |
public void | addUserRole(String role) |
protected void | checkActive() Check whether this request is still active (that is, not completed yet),
throwing an IllegalStateException if not active anymore. |
public void | clearAttributes() Clear all of this request's attributes. |
public void | close() Mark this request as completed, keeping its state. |
public Object | getAttribute(String name) |
public Enumeration | getAttributeNames() |
public String | getAuthType() |
public String | getCharacterEncoding() |
public int | getContentLength() |
public String | getContentType() |
public String | getContextPath() |
public Cookie[] | getCookies() |
public long | getDateHeader(String name) |
public String | getHeader(String name) |
public Enumeration | getHeaderNames() |
public Enumeration | getHeaders(String name) |
public ServletInputStream | getInputStream() |
public int | getIntHeader(String name) |
public String | getLocalAddr() |
public String | getLocalName() |
public int | getLocalPort() |
public Locale | getLocale() |
public Enumeration | getLocales() |
public String | getMethod() |
public String | getParameter(String name) |
public Map | getParameterMap() |
public Enumeration | getParameterNames() |
public String[] | getParameterValues(String name) |
public String | getPathInfo() |
public String | getPathTranslated() |
public String | getProtocol() |
public String | getQueryString() |
public BufferedReader | getReader() |
public String | getRealPath(String path) |
public String | getRemoteAddr() |
public String | getRemoteHost() |
public int | getRemotePort() |
public String | getRemoteUser() |
public RequestDispatcher | getRequestDispatcher(String path) |
public String | getRequestURI() |
public StringBuffer | getRequestURL() |
public String | getRequestedSessionId() |
public String | getScheme() |
public String | getServerName() |
public int | getServerPort() |
public String | getServletPath() |
public HttpSession | getSession(boolean create) |
public HttpSession | getSession() |
public Principal | getUserPrincipal() |
public void | invalidate() Invalidate this request, clearing its state. |
public boolean | isActive() Return whether this request is still active (that is, not completed yet). |
public boolean | isRequestedSessionIdFromCookie() |
public boolean | isRequestedSessionIdFromURL() |
public boolean | isRequestedSessionIdFromUrl() |
public boolean | isRequestedSessionIdValid() |
public boolean | isSecure() |
public boolean | isUserInRole(String role) |
public void | removeAttribute(String name) |
public void | removeParameter(String name) Remove already registered values for the specified HTTP parameter, if any. |
public void | setAttribute(String name, Object value) |
public void | setAuthType(String authType) |
public void | setCharacterEncoding(String characterEncoding) |
public void | setContent(byte[] content) |
public void | setContentType(String contentType) |
public void | setContextPath(String contextPath) |
public void | setCookies(Cookie[] cookies) |
public void | setLocalAddr(String localAddr) |
public void | setLocalName(String localName) |
public void | setLocalPort(int localPort) |
public void | setMethod(String method) |
public void | setParameter(String name, String value) Set a single value for the specified HTTP parameter. |
public void | setParameter(String name, String[] values) Set an array of values for the specified HTTP parameter. |
public void | setPathInfo(String pathInfo) |
public void | setProtocol(String protocol) |
public void | setQueryString(String queryString) |
public void | setRemoteAddr(String remoteAddr) |
public void | setRemoteHost(String remoteHost) |
public void | setRemotePort(int remotePort) |
public void | setRemoteUser(String remoteUser) |
public void | setRequestURI(String requestURI) |
public void | setRequestedSessionIdFromCookie(boolean requestedSessionIdFromCookie) |
public void | setRequestedSessionIdFromURL(boolean requestedSessionIdFromURL) |
public void | setRequestedSessionIdValid(boolean requestedSessionIdValid) |
public void | setScheme(String scheme) |
public void | setSecure(boolean secure) |
public void | setServerName(String serverName) |
public void | setServerPort(int serverPort) |
public void | setServletPath(String servletPath) |
public void | setSession(HttpSession session) |
public void | setUserPrincipal(Principal userPrincipal) |