public abstract class BaseHttpConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
UNIT_CONNECT_TIMEOUT
Basic/unit connection timeout (in milliseconds)
|
| Constructor and Description |
|---|
BaseHttpConnection() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
cleanup(boolean disconnect)
Clean up connection
|
abstract boolean |
connect()
Connect to url
|
abstract DataInputStream |
getInputStream()
Get inputstream
|
abstract void |
validate()
Validate established connection
|
protected static final int UNIT_CONNECT_TIMEOUT
public abstract boolean connect()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void validate()
throws IOException
IOExceptionpublic abstract DataInputStream getInputStream() throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract void cleanup(boolean disconnect)
throws IOException
disconnect - IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.