javax.servlet.http.HttpServletResponse, javax.servlet.ServletResponsepublic interface WLHttpServletResponse
| Modifier and Type | Method | Description | 
|---|---|---|
| java.net.Socket | getSocket() | Returns the socket associated with this HttpServletResponse. | 
| java.nio.channels.WritableByteChannel | getWritableByteChannel() | Returns a WritableByteChannel associated with the socket for this
 HttpServletResponse. | 
java.net.Socket getSocket()
                   throws java.io.IOException
Returns the socket associated with this HttpServletResponse.
NOTE: This method will force to send response header and make any response
 data in buffer ignored. Once this method is called, sending response via
 ServletOutputStream or
 PrintWriter from this HttpServletResponse object
 will get an IllegalStateException.
java.io.IOException - if error occurs when getting socket.java.nio.channels.WritableByteChannel getWritableByteChannel()
                                                      throws java.io.IOException
Returns a WritableByteChannel associated with the socket for this HttpServletResponse. This is to be used in conjunction with the getSocket() method in order to use the java.nio package for asynchronous writing to the client. This WritableByteChannel will be a channel that can always write to the socket regardless of whether the connection has used some SSL or not.
java.io.IOException