|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jetty.io.bio.StreamEndPoint
org.eclipse.jetty.io.bio.SocketEndPoint
public class SocketEndPoint
To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments
| Constructor Summary | |
|---|---|
|
SocketEndPoint(Socket socket)
|
protected |
SocketEndPoint(Socket socket,
int maxIdleTime)
|
| Method Summary | |
|---|---|
void |
close()
Close any backing stream associated with the endpoint |
String |
getLocalAddr()
|
String |
getLocalHost()
|
int |
getLocalPort()
|
String |
getRemoteAddr()
|
String |
getRemoteHost()
|
int |
getRemotePort()
|
Object |
getTransport()
|
protected void |
idleExpired()
|
boolean |
isInputShutdown()
|
boolean |
isOpen()
|
boolean |
isOutputShutdown()
|
void |
setMaxIdleTime(int timeMs)
Set the max idle time. |
void |
shutdownInput()
Shutdown any backing input stream associated with the endpoint |
void |
shutdownOutput()
Shutdown any backing output stream associated with the endpoint |
| Methods inherited from class org.eclipse.jetty.io.bio.StreamEndPoint |
|---|
blockReadable, blockWritable, fill, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isBufferingInput, isBufferingOutput, isBufferred, isClosed, setInputStream, setOutputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketEndPoint(Socket socket)
throws IOException
IOException
protected SocketEndPoint(Socket socket,
int maxIdleTime)
throws IOException
IOException| Method Detail |
|---|
public boolean isOpen()
isOpen in interface EndPointisOpen in class StreamEndPointpublic boolean isInputShutdown()
isInputShutdown in interface EndPointisInputShutdown in class StreamEndPointpublic boolean isOutputShutdown()
isOutputShutdown in interface EndPointisOutputShutdown in class StreamEndPoint
public void shutdownOutput()
throws IOException
EndPoint
shutdownOutput in interface EndPointshutdownOutput in class StreamEndPointIOException
public void shutdownInput()
throws IOException
EndPoint
shutdownInput in interface EndPointshutdownInput in class StreamEndPointIOException
public void close()
throws IOException
EndPoint
close in interface EndPointclose in class StreamEndPointIOExceptionpublic String getLocalAddr()
getLocalAddr in interface EndPointgetLocalAddr in class StreamEndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public String getLocalHost()
getLocalHost in interface EndPointgetLocalHost in class StreamEndPointEndPoint is bound, or null
if this EndPoint does not represent a network connection.public int getLocalPort()
getLocalPort in interface EndPointgetLocalPort in class StreamEndPointEndPoint is listening, or 0
if this EndPoint does not represent a network connection.public String getRemoteAddr()
getRemoteAddr in interface EndPointgetRemoteAddr in class StreamEndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public String getRemoteHost()
getRemoteHost in interface EndPointgetRemoteHost in class StreamEndPointEndPoint is connected, or null
if this EndPoint does not represent a network connection.public int getRemotePort()
getRemotePort in interface EndPointgetRemotePort in class StreamEndPointEndPoint is connected, or 0
if this EndPoint does not represent a network connection.public Object getTransport()
getTransport in interface EndPointgetTransport in class StreamEndPoint
public void setMaxIdleTime(int timeMs)
throws IOException
EndPoint
setMaxIdleTime in interface EndPointsetMaxIdleTime in class StreamEndPointtimeMs - the max idle time in MS. Timeout <= 0 implies an infinite timeout
IOException - if the timeout cannot be set.StreamEndPoint.setMaxIdleTime(int)
protected void idleExpired()
throws IOException
idleExpired in class StreamEndPointIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||