| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| protected Set | |
| protected ServerSocket |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | customize(EndPoint endpoint, Request request)
Overrides org. Implements org. |
| protected void | |
| protected void | |
| public Object | |
| public int | |
| protected Buffer | |
| protected HttpConnection | |
| protected ServerSocket | |
| public void |
| _connections | back to summary |
|---|---|
| protected Set<E> _connections | |
| _serverSocket | back to summary |
|---|---|
| protected ServerSocket _serverSocket | |
| SocketConnector | back to summary |
|---|---|
| public SocketConnector() Constructor. | |
| accept | back to summary |
|---|---|
| public void accept(int acceptorID) throws IOException, InterruptedException Implements abstract org. | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements org. | |
| customize | back to summary |
|---|---|
| public void customize(EndPoint endpoint, Request request) throws IOException Overrides org. Implements org. Doc from org. Customize a request for an endpoint. Called on every request to allow customization of the request for the particular endpoint (eg security properties from a SSL connection). | |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. | |
| doStop | back to summary |
|---|---|
| protected void doStop() throws Exception Overrides org. | |
| getConnection | back to summary |
|---|---|
| public Object getConnection() Implements org.
| |
| getLocalPort | back to summary |
|---|---|
| public int getLocalPort() Implements org.
| |
| newBuffer | back to summary |
|---|---|
| protected Buffer newBuffer(int size) Implements abstract org. | |
| newHttpConnection | back to summary |
|---|---|
| protected HttpConnection newHttpConnection(EndPoint endpoint) Allows subclass to override Conection if required. | |
| newServerSocket | back to summary |
|---|---|
| protected ServerSocket newServerSocket(String host, int port, int backlog) throws IOException | |
| open | back to summary |
|---|---|
| public void open() throws IOException Implements org. Doc from org. Opens the connector | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HttpConnection | |
| pack-priv boolean | |
| protected Socket | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | fill(Buffer buffer)
Overrides org. Implements org. |
| public void |
| _connection | back to summary |
|---|---|
| pack-priv HttpConnection _connection | |
| _dispatched | back to summary |
|---|---|
| pack-priv boolean _dispatched | |
| _socket | back to summary |
|---|---|
| protected Socket _socket | |
| _sotimeout | back to summary |
|---|---|
| pack-priv int _sotimeout | |
| Connection | back to summary |
|---|---|
| public Connection(Socket socket) throws IOException | |
| dispatch | back to summary |
|---|---|
| public void dispatch() throws InterruptedException, IOException | |
| fill | back to summary |
|---|---|
| public int fill(Buffer buffer) throws IOException Overrides org. Implements org. Doc from org. 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.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation. | |