org.eclipse.jetty.server.bio
Class SocketConnector.Connection
java.lang.Object
org.eclipse.jetty.io.bio.StreamEndPoint
org.eclipse.jetty.io.bio.SocketEndPoint
org.eclipse.jetty.server.bio.SocketConnector.Connection
- All Implemented Interfaces:
- Runnable, EndPoint
- Direct Known Subclasses:
- SslSocketConnector.SslConnection
- Enclosing class:
- SocketConnector
protected class SocketConnector.Connection
- extends SocketEndPoint
- implements Runnable
Method Summary |
void |
close()
Close any backing stream associated with the buffer |
void |
dispatch()
|
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer. |
void |
run()
|
Methods inherited from class org.eclipse.jetty.io.bio.StreamEndPoint |
blockReadable, blockWritable, flush, flush, flush, getInputStream, 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 |
_socket
protected Socket _socket
SocketConnector.Connection
public SocketConnector.Connection(Socket socket)
throws IOException
- Throws:
IOException
dispatch
public void dispatch()
throws IOException
- Throws:
IOException
fill
public int fill(Buffer buffer)
throws IOException
- Description copied from interface:
EndPoint
- Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer. The putIndex is increased if bytes filled.
The buffer may chose to do a compact before filling.
- Specified by:
fill
in interface EndPoint
- Overrides:
fill
in class StreamEndPoint
- Returns:
- an
int
value indicating the number of bytes
filled or -1 if EOF is reached.
- Throws:
IOException
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 SocketEndPoint
- Throws:
IOException
run
public void run()
- Specified by:
run
in interface Runnable
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.