|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ServerSocket
sunlabs.brazil.servlet.BServletServerSocket (view source)
public class BServletServerSocket
This is a special ServerSocket
intended for use by the
Brazil Servlet Adapter. It provides dummy methods for the
ServerSocket
operations used by the Brazil Toolkit. Do
not use this class for anything other than it's intended use as a
ServerSocket
object that is passed to the constructor of
a Server
object by the BrazilServlet
's
init
method.
ServerSocket
,
BServletServerSocket
,
Server
,
BrazilServlet
,
BServletRequest
Constructor Summary | |
---|---|
BServletServerSocket()
Creates a BServletServerSocket object
using -1 as a port number. |
|
BServletServerSocket(int port)
Creates a BServletServerSocket object. |
Method Summary | |
---|---|
Socket |
accept()
Dummy method, not implemented. |
void |
close()
Closes this socket. |
InetAddress |
getInetAddress()
Returns the local address to which this socket is bound. |
int |
getLocalPort()
Returns the local port to which this socket is bound. |
int |
getSoTimeout()
Dummy method, not implemented. |
void |
setLocalPort(int port)
Sets the local port to which this socket is bound. |
static void |
setSocketFactory(SocketImplFactory fac)
Dummy method, not implemented. |
void |
setSoTimeout(int timeout)
Dummy method, not implemented. |
String |
toString()
Converts this socket to a String . |
Methods inherited from class java.net.ServerSocket |
---|
bind, bind, getChannel, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BServletServerSocket() throws IOException
BServletServerSocket
object
using -1 as a port number.
IOException
public BServletServerSocket(int port) throws IOException
BServletServerSocket
object.
port
- the port number this object encapsulates.
IOException
setLocalPort(int port)
Method Detail |
---|
public InetAddress getInetAddress()
getInetAddress
in class ServerSocket
public void setLocalPort(int port)
ServerSocket
because the port is fixed at construction
time. It's needed here because a Servlet doesn't know it's local
port until it services it's first request.
public int getLocalPort()
getLocalPort
in class ServerSocket
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
- if method called.public void close() throws IOException
close
in class ServerSocket
IOException
- if an I/O error occurs when closing this socket.public void setSoTimeout(int timeout) throws SocketException
setSoTimeout
in class ServerSocket
timeout
- doesn't do anything.
SocketException
- if method called.public int getSoTimeout() throws IOException
getSoTimeout
in class ServerSocket
IOException
- if method called.public String toString()
String
.
toString
in class ServerSocket
public static void setSocketFactory(SocketImplFactory fac) throws IOException
fac
- doesn't do anything.
IOException
- if method called.
|
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 |