|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.Socket
sunlabs.brazil.servlet.BServletSocket (view source)
public class BServletSocket
This is a special Socket
intended for use by the Brazil
Servlet Adapter. It provides dummy methods for the Socket
operations used by the Brazil Toolkit. Do not use this
class for anything other than it's intended use as a
Socket
object that is passed to the constructor
of a Request
object by the BServletRequest
's
constructor.
Socket
,
BServletServerSocket
,
BrazilServlet
,
BServletRequest
,
Request
Constructor Summary | |
---|---|
BServletSocket(HttpServletRequest req,
HttpServletResponse res)
Creates a BServletSocket object. |
Method Summary | |
---|---|
void |
close()
Closes this socket. |
InetAddress |
getInetAddress()
Returns the address to which the socket is connected. |
InputStream |
getInputStream()
Returns an input stream for this socket. |
boolean |
getKeepAlive()
Dummy method, not implemented. |
InetAddress |
getLocalAddress()
Returns the local address to which the socket is bound. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
OutputStream |
getOutputStream()
Returns an output stream for this socket. |
int |
getPort()
Returns the remote port to which this socket is connected. |
int |
getReceiveBufferSize()
Dummy method, not implemented. |
int |
getSendBufferSize()
Dummy method, not implemented. |
int |
getSoLinger()
Dummy method, not implemented. |
int |
getSoTimeout()
Dummy method, not implemented. |
boolean |
getTcpNoDelay()
Dummy method, not implemented. |
void |
setKeepAlive(boolean on)
Dummy method, not implemented. |
void |
setReceiveBufferSize(int size)
Dummy method, not implemented. |
void |
setSendBufferSize(int size)
Dummy method, not implemented. |
void |
setSoLinger(boolean on,
int linger)
Dummy method, not implemented. |
void |
setSoTimeout(int timeout)
Dummy method, not implemented. |
void |
setTcpNoDelay(boolean on)
Dummy method, not implemented. |
void |
shutdownInput()
Dummy method, not implemented. |
void |
shutdownOutput()
Dummy method, not implemented. |
String |
toString()
Converts this socket to a String . |
Methods inherited from class java.net.Socket |
---|
bind, connect, connect, getChannel, getLocalSocketAddress, getOOBInline, getRemoteSocketAddress, getReuseAddress, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BServletSocket(HttpServletRequest req, HttpServletResponse res) throws UnknownHostException, IOException
BServletSocket
object.
req
- the HttpServletRequest
passed to
BrazilServlet
by the servlet container.res
- the HttpServletResponse
passed to
BrazilServlet
by the servlet container.
UnknownHostException
IOException
BrazilServlet
Method Detail |
---|
public InetAddress getInetAddress()
getInetAddress
in class Socket
public InetAddress getLocalAddress()
getLocalAddress
in class Socket
public int getPort()
getPort
in class Socket
public int getLocalPort()
getLocalPort
in class Socket
public InputStream getInputStream() throws IOException
getInputStream
in class Socket
IOException
- if an I/O error occurs when creating the
input stream.public OutputStream getOutputStream() throws IOException
getOutputStream
in class Socket
IOException
- if an I/O error occurs when creating the
output stream.public void setTcpNoDelay(boolean on) throws SocketException
setTcpNoDelay
in class Socket
on
- doesn't do anything.
SocketException
- if method called.public boolean getTcpNoDelay() throws SocketException
getTcpNoDelay
in class Socket
false
SocketException
- if method called.public void setSoLinger(boolean on, int linger) throws SocketException
setSoLinger
in class Socket
on
- doesn't do anything.linger
- doesn't do anything.
SocketException
- if method called.public int getSoLinger() throws SocketException
getSoLinger
in class Socket
SocketException
- if method called.public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class Socket
timeout
- doesn't do anything.
SocketException
- if method called.public int getSoTimeout() throws SocketException
getSoTimeout
in class Socket
SocketException
- if method called.public void setSendBufferSize(int size) throws SocketException
setSendBufferSize
in class Socket
size
- doesn't do anything.
SocketException
- if method called.public int getSendBufferSize() throws SocketException
getSendBufferSize
in class Socket
SocketException
- if method called.public void setReceiveBufferSize(int size) throws SocketException
setReceiveBufferSize
in class Socket
size
- doesn't do anything.
SocketException
- if method called.public int getReceiveBufferSize() throws SocketException
getReceiveBufferSize
in class Socket
SocketException
- if method called.public void setKeepAlive(boolean on) throws SocketException
setKeepAlive
in class Socket
on
- doesn't do anything.
SocketException
- if method called.public boolean getKeepAlive() throws SocketException
getKeepAlive
in class Socket
false
SocketException
- if method called.public void close() throws IOException
close
in class Socket
IOException
- if an I/O error occurs when closing this socket.public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
- if method called.public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
- if method called.public String toString()
String
.
toString
in class Socket
|
Version Kenai-svn-r24, Generated 08/18/09 Copyright (c) 2001-2009, Sun Microsystems. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |