|
Oracle | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WLHttpServletResponse
Method Summary | |
---|---|
Socket |
getSocket()
Returns the socket associated with this HttpServletResponse. |
WritableByteChannel |
getWritableByteChannel()
Returns a WritableByteChannel associated with the socket for this HttpServletResponse. |
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
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111 Copyright 1996,2009, 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. Part Number E13941-01 Oracle WebLogic Server 10.3.1 API Reference |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |