|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WLHttpServletResponse
Field Summary |
---|
Method Summary | |
---|---|
abstract Socket |
getSocket() Returns the socket associated with this HttpServletResponse. |
abstract WritableByteChannel |
getWritableByteChannel() Returns a WritableByteChannel associated with the socket for this HttpServletResponse. |
Methods inherited from interface javax.servlet.http.HttpServletResponse |
---|
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, getHeader, getHeaderNames, getHeaders, getStatus, sendError, sendError, sendRedirect, setDateHeader, setHeader, setIntHeader, setStatus, setStatus |
Methods inherited from interface javax.servlet.ServletResponse |
---|
flushBuffer, getBufferSize, getCharacterEncoding, getContentType, getLocale, getOutputStream, getWriter, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setContentLength, setContentLengthLong, setContentType, setLocale |
Method Detail |
---|
Socket getSocket() throws 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.
IOException
- if error occurs when getting socket.WritableByteChannel getWritableByteChannel() throws 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.
IOException
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |