|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.net.Socket
|
+--sunlabs.brazil.servlet.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, 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.BrazilServlet| Method Detail |
public InetAddress getInetAddress()
getInetAddress in class Socketpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getPort()
getPort in class Socketpublic int getLocalPort()
getLocalPort in class Socket
public InputStream getInputStream()
throws IOException
getInputStream in class SocketIOException - if an I/O error occurs when creating the
input stream.
public OutputStream getOutputStream()
throws IOException
getOutputStream in class SocketIOException - if an I/O error occurs when creating the
output stream.
public void setTcpNoDelay(boolean on)
throws SocketException
setTcpNoDelay in class Socketon - doesn't do anything.
SocketException - if method called.
public boolean getTcpNoDelay()
throws SocketException
getTcpNoDelay in class Socketfalse
SocketException - if method called.
public void setSoLinger(boolean on,
int linger)
throws SocketException
setSoLinger in class Socketon - doesn't do anything.linger - doesn't do anything.
SocketException - if method called.
public int getSoLinger()
throws SocketException
getSoLinger in class SocketSocketException - if method called.
public void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class Sockettimeout - doesn't do anything.
SocketException - if method called.
public int getSoTimeout()
throws SocketException
getSoTimeout in class SocketSocketException - if method called.
public void setSendBufferSize(int size)
throws SocketException
setSendBufferSize in class Socketsize - doesn't do anything.
SocketException - if method called.
public int getSendBufferSize()
throws SocketException
getSendBufferSize in class SocketSocketException - if method called.
public void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize in class Socketsize - doesn't do anything.
SocketException - if method called.
public int getReceiveBufferSize()
throws SocketException
getReceiveBufferSize in class SocketSocketException - if method called.
public void setKeepAlive(boolean on)
throws SocketException
setKeepAlive in class Socketon - doesn't do anything.
SocketException - if method called.
public boolean getKeepAlive()
throws SocketException
getKeepAlive in class Socketfalse
SocketException - if method called.
public void close()
throws IOException
close in class SocketIOException - if an I/O error occurs when closing this socket.
public void shutdownInput()
throws IOException
shutdownInput in class SocketIOException - if method called.
public void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOException - if method called.public String toString()
String.
toString in class Socket
|
Version 2.1, Generated 12/30/04 Copyright (c) 2001-2004, Sun Microsystems. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||