org.mortbay.io.bio
Class SocketEndPoint

java.lang.Object
  extended by org.mortbay.io.bio.StreamEndPoint
      extended by org.mortbay.io.bio.SocketEndPoint
All Implemented Interfaces:
EndPoint
Direct Known Subclasses:
SocketConnector.Connection

public class SocketEndPoint
extends StreamEndPoint

Author:
gregw To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Field Summary
(package private)  InetSocketAddress _local
           
(package private)  InetSocketAddress _remote
           
(package private)  Socket _socket
           
 
Fields inherited from class org.mortbay.io.bio.StreamEndPoint
_in, _out
 
Constructor Summary
SocketEndPoint(Socket socket)
           
 
Method Summary
 void close()
          Close any backing stream associated with the buffer
 Object getConnection()
           
 String getLocalAddr()
           
 String getLocalHost()
           
 int getLocalPort()
           
 String getRemoteAddr()
           
 String getRemoteHost()
           
 int getRemotePort()
           
 boolean isClosed()
           
 
Methods inherited from class org.mortbay.io.bio.StreamEndPoint
blockReadable, blockWritable, fill, flush, flush, isBlocking, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_socket

Socket _socket

_local

InetSocketAddress _local

_remote

InetSocketAddress _remote
Constructor Detail

SocketEndPoint

public SocketEndPoint(Socket socket)
               throws IOException
Throws:
IOException
Method Detail

isClosed

public boolean isClosed()

close

public void close()
           throws IOException
Description copied from interface: EndPoint
Close any backing stream associated with the buffer

Specified by:
close in interface EndPoint
Overrides:
close in class StreamEndPoint
Throws:
IOException

getLocalAddr

public String getLocalAddr()
Specified by:
getLocalAddr in interface EndPoint
Overrides:
getLocalAddr in class StreamEndPoint
Returns:

getLocalHost

public String getLocalHost()
Specified by:
getLocalHost in interface EndPoint
Overrides:
getLocalHost in class StreamEndPoint
Returns:

getLocalPort

public int getLocalPort()
Specified by:
getLocalPort in interface EndPoint
Overrides:
getLocalPort in class StreamEndPoint
Returns:

getRemoteAddr

public String getRemoteAddr()
Specified by:
getRemoteAddr in interface EndPoint
Overrides:
getRemoteAddr in class StreamEndPoint

getRemoteHost

public String getRemoteHost()
Specified by:
getRemoteHost in interface EndPoint
Overrides:
getRemoteHost in class StreamEndPoint
Returns:

getRemotePort

public int getRemotePort()
Specified by:
getRemotePort in interface EndPoint
Overrides:
getRemotePort in class StreamEndPoint
Returns:

getConnection

public Object getConnection()
Specified by:
getConnection in interface EndPoint
Overrides:
getConnection in class StreamEndPoint