public abstract class MultiplexHttpDestination<C extends Connection> extends HttpDestination implements Promise<Connection>
Promise.Adapter<C>
Destination.Address
LOG
Modifier | Constructor and Description |
---|---|
protected |
MultiplexHttpDestination(HttpClient client,
String scheme,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
protected boolean |
process(C connection,
boolean dispatch) |
protected void |
send() |
protected abstract void |
send(C connection,
HttpExchange exchange) |
void |
succeeded(Connection result)
Callback invoked when the operation completes.
|
abort, abort, asString, close, createConnection, dump, dump, getConnectAddress, getHost, getHostField, getHttpClient, getHttpExchanges, getPort, getProxyURI, getRequestNotifier, getResponseNotifier, getScheme, isProxied, newConnection, remove, send, toString, tunnelFailed, tunnelSucceeded
protected MultiplexHttpDestination(HttpClient client, String scheme, String host, int port)
protected void send()
send
in class HttpDestination
public void succeeded(Connection result)
Promise
Callback invoked when the operation completes.
succeeded
in interface Promise<Connection>
result
- the contextPromise.failed(Throwable)
public void failed(Throwable x)
Promise
Callback invoked when the operation fails.
failed
in interface Promise<Connection>
x
- the reason for the operation failureprotected boolean process(C connection, boolean dispatch)
protected abstract void send(C connection, HttpExchange exchange)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.