| | |
| | | final Operation operation; |
| | | final LdapPromiseImpl<Result> promise; |
| | | |
| | | public OperationWithPromise(Operation operation, LdapPromiseImpl<Result> promise) |
| | | private OperationWithPromise(Operation operation, LdapPromiseImpl<Result> promise) |
| | | { |
| | | this.operation = operation; |
| | | this.promise = promise; |
| | |
| | | |
| | | final SearchResultHandler entryHandler; |
| | | |
| | | public SearchOperationWithPromise( |
| | | private SearchOperationWithPromise( |
| | | Operation operation, LdapPromiseImpl<Result> promise, SearchResultHandler entryHandler) |
| | | { |
| | | super(operation, promise); |
| | |
| | | /** The client (remote) address. */ |
| | | private final String clientAddress; |
| | | |
| | | /** The client (remote) host name. */ |
| | | private String clientHost; |
| | | |
| | | /** The client (remote) port. */ |
| | | private final int clientPort; |
| | | |
| | |
| | | /** The server (local) address. */ |
| | | private final String serverAddress; |
| | | |
| | | /** The server (local) host name. */ |
| | | private String serverHost; |
| | | |
| | | /** The server (local) port. */ |
| | | private final int serverPort; |
| | | |
| | |
| | | @Override |
| | | public String getClientHost() |
| | | { |
| | | return clientHost; |
| | | return clientAddress; // Avoid reverse lookups. |
| | | } |
| | | |
| | | @Override |
| | |
| | | @Override |
| | | public String getServerHost() |
| | | { |
| | | return serverHost; |
| | | return serverAddress; // Avoid reverse lookups. |
| | | } |
| | | |
| | | @Override |
| | |
| | | buffer.append(getServerAddress()).append(":").append(getServerPort()); |
| | | } |
| | | |
| | | /** |
| | | * Returns the statTracker for this connection handler. |
| | | * |
| | | * @return the statTracker for this connection handler |
| | | */ |
| | | public HTTPStatistics getStatTracker() |
| | | { |
| | | return statTracker; |
| | | } |
| | | |
| | | @Override |
| | | public int getSSF() |
| | | { |