Top Fields Constructors Methods
org.mortbay.io.bio

public Class SocketEndPoint

extends StreamEndPoint
Class Inheritance
Known Direct Subclasses
org.mortbay.jetty.bio.SocketConnector.Connection
Imports
java.io.IOException, java.net.InetAddress, .InetSocketAddress, .Socket, org.mortbay.io.Portable, org.mortbay.log.Log

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

Field Summary

Modifier and TypeField and Description
pack-priv final InetSocketAddress
pack-priv final InetSocketAddress
pack-priv final Socket
Inherited from org.mortbay.io.bio.StreamEndPoint:
_in_out

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides org.mortbay.io.bio.StreamEndPoint.close.

Implements org.mortbay.io.EndPoint.close.

Close any backing stream associated with the buffer
public String
public String
public int
public String
public String
public int
public Object
public boolean
public void
shutdownOutput()

Overrides org.mortbay.io.bio.StreamEndPoint.shutdownOutput.

Implements org.mortbay.io.EndPoint.shutdownOutput.

Shutdown any backing output stream associated with the endpoint
Inherited from org.mortbay.io.bio.StreamEndPoint:
blockReadableblockWritablefillflushflushflushgetInputStreamgetOutputStreamisBlockingisBufferingInputisBufferingOutputisBufferredisClosedsetInputStreamsetOutputStream

Field Detail

_localback to summary
pack-priv final InetSocketAddress _local
_remoteback to summary
pack-priv final InetSocketAddress _remote
_socketback to summary
pack-priv final Socket _socket

Constructor Detail

SocketEndPointback to summary
public SocketEndPoint(Socket socket) throws IOException

Method Detail

closeback to summary
public void close() throws IOException

Overrides org.mortbay.io.bio.StreamEndPoint.close.

Implements org.mortbay.io.EndPoint.close.

Doc from org.mortbay.io.EndPoint.close.

Close any backing stream associated with the buffer

getLocalAddrback to summary
public String getLocalAddr()

Overrides org.mortbay.io.bio.StreamEndPoint.getLocalAddr.

Implements org.mortbay.io.EndPoint.getLocalAddr.

Returns:String

Doc from org.mortbay.io.EndPoint.getLocalAddr.

The local IP address to which this EndPoint is bound, or null if this EndPoint does not represent a network connection.

getLocalHostback to summary
public String getLocalHost()

Overrides org.mortbay.io.bio.StreamEndPoint.getLocalHost.

Implements org.mortbay.io.EndPoint.getLocalHost.

Returns:String

Doc from org.mortbay.io.EndPoint.getLocalHost.

The local host name to which this EndPoint is bound, or null if this EndPoint does not represent a network connection.

getLocalPortback to summary
public int getLocalPort()

Overrides org.mortbay.io.bio.StreamEndPoint.getLocalPort.

Implements org.mortbay.io.EndPoint.getLocalPort.

Returns:int

Doc from org.mortbay.io.EndPoint.getLocalPort.

The local port number on which this EndPoint is listening, or 0 if this EndPoint does not represent a network connection.

getRemoteAddrback to summary
public String getRemoteAddr()

Overrides org.mortbay.io.bio.StreamEndPoint.getRemoteAddr.

Implements org.mortbay.io.EndPoint.getRemoteAddr.

Returns:String

Doc from org.mortbay.io.EndPoint.getRemoteAddr.

The remote IP address to which this EndPoint is connected, or null if this EndPoint does not represent a network connection.

getRemoteHostback to summary
public String getRemoteHost()

Overrides org.mortbay.io.bio.StreamEndPoint.getRemoteHost.

Implements org.mortbay.io.EndPoint.getRemoteHost.

Returns:String

Doc from org.mortbay.io.EndPoint.getRemoteHost.

The host name of the remote machine to which this EndPoint is connected, or null if this EndPoint does not represent a network connection.

getRemotePortback to summary
public int getRemotePort()

Overrides org.mortbay.io.bio.StreamEndPoint.getRemotePort.

Implements org.mortbay.io.EndPoint.getRemotePort.

Returns:int

Doc from org.mortbay.io.EndPoint.getRemotePort.

The remote port number to which this EndPoint is connected, or 0 if this EndPoint does not represent a network connection.

getTransportback to summary
public Object getTransport()

Overrides org.mortbay.io.bio.StreamEndPoint.getTransport.

Implements org.mortbay.io.EndPoint.getTransport.

Returns:Object

Doc from org.mortbay.io.EndPoint.getTransport.

The underlying transport object (socket, channel, etc.)

isOpenback to summary
public boolean isOpen()

Overrides org.mortbay.io.bio.StreamEndPoint.isOpen.

Implements org.mortbay.io.EndPoint.isOpen.

shutdownOutputback to summary
public void shutdownOutput() throws IOException

Overrides org.mortbay.io.bio.StreamEndPoint.shutdownOutput.

Implements org.mortbay.io.EndPoint.shutdownOutput.

Doc from org.mortbay.io.EndPoint.shutdownOutput.

Shutdown any backing output stream associated with the endpoint