public class StartupServletExternalContextImpl extends ServletExternalContextImplBase
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_TEXT |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH| Constructor and Description |
|---|
StartupServletExternalContextImpl(javax.servlet.ServletContext servletContext,
boolean startup) |
checkNull, getApplicationContextPath, getApplicationMap, getClientWindow, getContext, getContextName, getInitParameter, getInitParameterMap, getMimeType, getRealPath, getResource, getResourceAsStream, getResourcePaths, log, log, release, setClientWindowpublic static final String EXCEPTION_TEXT
public StartupServletExternalContextImpl(javax.servlet.ServletContext servletContext,
boolean startup)
public void setSession(javax.servlet.http.HttpSession session)
session - public String encodeActionURL(String url)
encodeActionURL in class ExternalContextpublic String encodeNamespace(String name)
encodeNamespace in class ExternalContextpublic String encodeResourceURL(String url)
encodeResourceURL in class ExternalContextpublic String getAuthType()
getAuthType in class ExternalContextpublic String getRemoteUser()
getRemoteUser in class ExternalContextpublic Object getRequest()
getRequest in class ExternalContextpublic String getRequestContextPath()
getRequestContextPath in class ExternalContextpublic Map<String,Object> getRequestCookieMap()
getRequestCookieMap in class ExternalContextpublic Map<String,String> getRequestHeaderMap()
getRequestHeaderMap in class ExternalContextpublic Map<String,String[]> getRequestHeaderValuesMap()
getRequestHeaderValuesMap in class ExternalContextpublic Locale getRequestLocale()
getRequestLocale in class ExternalContextpublic Iterator<Locale> getRequestLocales()
getRequestLocales in class ExternalContextpublic Map<String,Object> getRequestMap()
getRequestMap in class ExternalContextpublic Map<String,String> getRequestParameterMap()
getRequestParameterMap in class ExternalContextpublic Iterator<String> getRequestParameterNames()
getRequestParameterNames in class ExternalContextpublic Map<String,String[]> getRequestParameterValuesMap()
getRequestParameterValuesMap in class ExternalContextpublic String getRequestPathInfo()
getRequestPathInfo in class ExternalContextpublic String getRequestServletPath()
getRequestServletPath in class ExternalContextpublic Object getResponse()
getResponse in class ExternalContextpublic Object getSession(boolean create)
getSession in class ExternalContextpublic String getSessionId(boolean create)
getSessionId in class ExternalContextpublic Map<String,Object> getSessionMap()
getSessionMap in class ExternalContextpublic Principal getUserPrincipal()
getUserPrincipal in class ExternalContextpublic boolean isUserInRole(String role)
isUserInRole in class ExternalContextpublic String encodeBookmarkableURL(String baseUrl, Map<String,List<String>> parameters)
encodeBookmarkableURL in class ExternalContextpublic String encodePartialActionURL(String url)
encodePartialActionURL in class ExternalContextpublic String encodeRedirectURL(String baseUrl, Map<String,List<String>> parameters)
encodeRedirectURL in class ExternalContextpublic String getRequestCharacterEncoding()
getRequestCharacterEncoding in class ExternalContextpublic int getRequestContentLength()
getRequestContentLength in class ExternalContextpublic String getRequestContentType()
getRequestContentType in class ExternalContextpublic String getRequestScheme()
getRequestScheme in class ExternalContextpublic String getRequestServerName()
getRequestServerName in class ExternalContextpublic int getRequestServerPort()
getRequestServerPort in class ExternalContextpublic int getResponseBufferSize()
getResponseBufferSize in class ExternalContextpublic String getResponseCharacterEncoding()
getResponseCharacterEncoding in class ExternalContextpublic String getResponseContentType()
getResponseContentType in class ExternalContextpublic void invalidateSession()
invalidateSession in class ExternalContextpublic boolean isResponseCommitted()
isResponseCommitted in class ExternalContextpublic void setRequest(Object request)
setRequest in class ExternalContextpublic void setRequestCharacterEncoding(String encoding) throws UnsupportedEncodingException
setRequestCharacterEncoding in class ExternalContextUnsupportedEncodingExceptionpublic void setResponse(Object response)
setResponse in class ExternalContextpublic void setResponseBufferSize(int size)
setResponseBufferSize in class ExternalContextpublic void setResponseCharacterEncoding(String encoding)
setResponseCharacterEncoding in class ExternalContextpublic void setResponseContentLength(int length)
setResponseContentLength in class ExternalContextpublic void setResponseContentType(String contentType)
setResponseContentType in class ExternalContextpublic void setResponseHeader(String name, String value)
setResponseHeader in class ExternalContextpublic void setResponseStatus(int statusCode)
setResponseStatus in class ExternalContextpublic void dispatch(String path) throws IOException
dispatch in class ExternalContextIOExceptionpublic void redirect(String url) throws IOException
redirect in class ExternalContextIOExceptionpublic void responseFlushBuffer()
throws IOException
responseFlushBuffer in class ExternalContextIOExceptionpublic void responseReset()
responseReset in class ExternalContextpublic void responseSendError(int statusCode,
String message)
throws IOException
responseSendError in class ExternalContextIOExceptionpublic void addResponseCookie(String name, String value, Map<String,Object> properties)
addResponseCookie in class ExternalContextpublic void addResponseHeader(String name, String value)
addResponseHeader in class ExternalContextpublic Flash getFlash()
getFlash in class ExternalContextpublic OutputStream getResponseOutputStream() throws IOException
getResponseOutputStream in class ExternalContextIOExceptionpublic Writer getResponseOutputWriter() throws IOException
getResponseOutputWriter in class ExternalContextIOExceptionpublic boolean isSecure()
isSecure in class ExternalContextpublic int getSessionMaxInactiveInterval()
getSessionMaxInactiveInterval in class ExternalContextpublic void setSessionMaxInactiveInterval(int interval)
setSessionMaxInactiveInterval in class ExternalContextpublic String encodeWebsocketURL(String url)
encodeWebsocketURL in class ExternalContextCopyright © 2025 The Apache Software Foundation. All rights reserved.