public class DefaultConnectionListener extends java.lang.Object implements IOProcessor
| Constructor and Description |
|---|
DefaultConnectionListener(int port,
HttpConnectionManager connmanager,
ConnectionListenerFailureHandler failureHandler,
org.apache.http.params.HttpParams params)
Use this constructor to provide a custom ConnectionListenerFailureHandler, e.g.
|
| Modifier and Type | Method and Description |
|---|---|
void |
awaitSocketOpen() |
void |
close() |
void |
destroy() |
int |
getPort() |
boolean |
isDestroyed() |
void |
run() |
public DefaultConnectionListener(int port,
HttpConnectionManager connmanager,
ConnectionListenerFailureHandler failureHandler,
org.apache.http.params.HttpParams params)
throws java.io.IOException
java.io.IOExceptionpublic void run()
run in interface java.lang.Runnablepublic void awaitSocketOpen()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic int getPort()
public void close()
throws java.io.IOException
close in interface IOProcessorjava.io.IOExceptionpublic void destroy()
destroy in interface IOProcessorpublic boolean isDestroyed()
isDestroyed in interface IOProcessorCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.