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
IOException
InterruptedException
public abstract void validate() throws IOException
IOException
public abstract DataInputStream getInputStream() throws IOException, InterruptedException
IOException
InterruptedException
public abstract void cleanup(boolean disconnect) throws IOException
disconnect
- IOException
Copyright © 2016 Apache Software Foundation. All rights reserved.