Package org.jolokia.server.core.http
Class ServletBackChannel
java.lang.Object
org.jolokia.server.core.http.ServletBackChannel
- All Implemented Interfaces:
BackChannel
A back channel using the async request API as specified in the Servlet 3.0 spec.
- Since:
- 19/10/15
- Author:
- roland
-
Field Summary
Fields inherited from interface org.jolokia.server.core.http.BackChannel
CONTENT_TYPE, ENCODING -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ServletBackChannel
public ServletBackChannel(jakarta.servlet.http.HttpServletRequest pReq)
-
-
Method Details
-
open
Description copied from interface:BackChannelOpen the channel. Note, that a channel which has been already closed cannot be reopened again.- Specified by:
openin interfaceBackChannel- Parameters:
pParams- params for opening the back channel. The following parameter keys should be use for opening:- backChannel.contentType - Content-Type to set on the backchannel
- backChannel.encoding - Encoding used for the client communication
- Throws:
IOException- if the channel was already closed
-
close
public void close()Description copied from interface:BackChannelClose the channel. After this no write is allowed anymore- Specified by:
closein interfaceBackChannel
-
isClosed
public boolean isClosed()Description copied from interface:BackChannelCheck whether the backchanel is closed- Specified by:
isClosedin interfaceBackChannel
-
getOutputStream
Description copied from interface:BackChannelGet the write for writing to the client- Specified by:
getOutputStreamin interfaceBackChannel- Returns:
- output stream for writing out the answer
- Throws:
IOException- if the channel is already closed.
-