| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| protected final HttpServletRequest |
| Access | Constructor and Description |
|---|---|
| public | DefaultWebSocket(final ProtocolHandler protocolHandler, final HttpRequestPacket request, final WebSocketListener... listeners)
|
| Modifier and Type | Method and Description |
|---|---|
| public HttpServletRequest |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER Hides org. | |
| servletRequest | back to summary |
|---|---|
| protected final HttpServletRequest servletRequest | |
| DefaultWebSocket | back to summary |
|---|---|
| public DefaultWebSocket(final ProtocolHandler protocolHandler, final HttpRequestPacket request, final WebSocketListener... listeners) | |
| getUpgradeRequest | back to summary |
|---|---|
| public HttpServletRequest getUpgradeRequest() Returns the upgrade request for this WebSocket.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | parseSessionId()
Overrides org. Make method visible for websockets |
| WSRequestImpl | back to summary |
|---|---|
| public WSRequestImpl() | |
| parseSessionId | back to summary |
|---|---|
| protected void parseSessionId() Overrides org. Make method visible for websockets
| |
| Access | Constructor and Description |
|---|---|
| public |
| WSResponseImpl | back to summary |
|---|---|
| public WSResponseImpl() | |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private GlassfishSupport | |
| private boolean | |
| private String | |
| private BufferedReader | |
| private String |
| Access | Constructor and Description |
|---|---|
| private |
| contextPath | back to summary |
|---|---|
| private String contextPath Hides org. | |
| glassfishSupport | back to summary |
|---|---|
| private GlassfishSupport glassfishSupport | |
| isUserPrincipalUpdated | back to summary |
|---|---|
| private boolean isUserPrincipalUpdated | |
| pathInfo | back to summary |
|---|---|
| private String pathInfo Hides org. | |
| reader | back to summary |
|---|---|
| private BufferedReader reader Hides org. | |
| servletPath | back to summary |
|---|---|
| private String servletPath Hides org. | |
| WSServletRequestImpl | back to summary |
|---|---|
| private WSServletRequestImpl() | |
| checkGlassfishAuth | back to summary |
|---|---|
| private void checkGlassfishAuth() | |
| getAuthType | back to summary |
|---|---|
| public String getAuthType() Overrides org. Implements jakarta. Doc from org. Returns the name of the authentication scheme used to protect the servlet. All servlet containers support basic, form
and client certificate authentication, and may additionally support digest authentication. If the servlet is not
authenticated
| |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Overrides org. Implements jakarta. Doc from org. Returns the portion of the request URI that indicates the context of the request. The context path always comes first in a request URI. The path starts with a "/" character but does not end with a "/" character. For servlets in the default (root) context, this method returns "". The container does not decode this string.
It is possible that a servlet container may match a context by more than one context path. In such cases this method
will return the actual context path used by the request and it may differ from the path returned by the
| |
| getInputStream | back to summary |
|---|---|
| public ServletInputStream getInputStream() throws IOException Overrides org. Implements jakarta. Doc from org. Retrieves the body of the request as binary data using a
| |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo() Overrides org. Implements jakarta. Doc from org. Returns any extra path information associated with the URL the client sent when it made this request. The extra path information follows the servlet path but precedes the query string and will start with a "/" character.
This method returns
| |
| getReader | back to summary |
|---|---|
| public BufferedReader getReader() throws IOException Overrides org. Implements jakarta. Doc from org. Retrieves the body of the request as character data using a
| |
| getRemoteUser | back to summary |
|---|---|
| public String getRemoteUser() Overrides org. Implements jakarta. Doc from org. Returns the login of the user making this request, if the user has been authenticated, or
| |
| getServletPath | back to summary |
|---|---|
| public String getServletPath() Overrides org. Implements jakarta. Doc from org. Returns the part of this request's URL that calls the servlet. This path starts with a "/" character and includes the path to the servlet, but does not include any extra path information or a query string. This method will return an empty string ("") if the servlet used to process this request was matched using the "/*" pattern.
| |
| getSession | back to summary |
|---|---|
| public HttpSession getSession(boolean create) Overrides org. Implements jakarta. Doc from org. Returns the current
If To make sure the session is properly maintained, you must call this method before the response is committed. If the container is using cookies to maintain session integrity and is asked to create a new session when the response is committed, an IllegalStateException is thrown.
| |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Overrides org. Implements jakarta. Doc from org. Returns a
| |
| initialize | back to summary |
|---|---|
| public void initialize(final Request request, final HttpServletResponseImpl servletResponse, final WebSocketMappingData mappingData) throws IOException | |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Overrides org. Implements jakarta. Doc from org. Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and
role membership can be defined using deployment descriptors. If the user has not been authenticated, the method
returns
The role name "*" should never be used as an argument in calling
| |
| updatePaths | back to summary |
|---|---|
| private void updatePaths(final WebSocketMappingData mappingData) | |
| Modifier and Type | Field and Description |
|---|---|
| private PrintWriter |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ServletOutputStream | getOutputStream()
Overrides org. Implements jakarta. Returns a |
| public PrintWriter | getWriter()
Overrides org. Implements jakarta. Returns a |
| writer | back to summary |
|---|---|
| private PrintWriter writer Hides org. | |
| WSServletResponseImpl | back to summary |
|---|---|
| private WSServletResponseImpl() | |
| getOutputStream | back to summary |
|---|---|
| public ServletOutputStream getOutputStream() throws IOException Overrides org. Implements jakarta. Doc from org. Returns a
Calling flush() on the ServletOutputStream commits the response.
Either this method or
| |
| getWriter | back to summary |
|---|---|
| public PrintWriter getWriter() throws IOException Overrides org. Implements jakarta. Doc from org. Returns a
Calling flush() on the
Either this method or
| |