public class HTTPConnection extends com.streamscape.service.osf.clients.AbstractClientConnection implements UsableClientConnection
Title: OSF Service Library
Description: A wrapper around an HTTPClient connection.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
Constructor and Description |
---|
HTTPConnection() |
Modifier and Type | Method and Description |
---|---|
void |
connect()
Connects to the target system.
|
com.streamscape.sef.factory.connection.FactoryConnectionService |
createConnectionService() |
void |
disconnect()
Disconnects from the target system.
|
HTTPResponse |
execute(HTTPRequest request) |
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getSchema() |
int |
getTimeout() |
java.lang.String |
getUrl() |
java.lang.String |
getUser() |
void |
init(ClientFactory factory)
Initializes this connection with a set of parameters hosted in
Properties.
|
int |
ping()
Tests the connection, possibly returning a test result code.
|
void |
raiseException(java.lang.Exception exception)
Raises an exception on this connection.
|
java.lang.String |
toString() |
getExceptionEventListener, getName, getServiceLogger, getState, getStateNotificationEventListener, isActive, isPrimary, isSuspended, resume, setExceptionEventListener, setName, setPrimary, setServiceLogger, setStateNotificationEventListener, suspend
public java.lang.String getUser()
public java.lang.String getHost()
public int getPort()
public int getTimeout()
public java.lang.String getSchema()
public int ping() throws ClientException
ClientConnection
ping
in interface ClientConnection
ClientException
public void connect() throws ClientException
ClientConnection
connect
in interface ClientConnection
ClientException
public void disconnect() throws ClientException
ClientConnection
disconnect
in interface ClientConnection
ClientException
public void raiseException(java.lang.Exception exception)
ClientConnection
raiseException
in interface ClientConnection
exception
- Exceptionpublic void init(ClientFactory factory) throws ClientException
ClientConnection
init
in interface ClientConnection
ClientException
public HTTPResponse execute(HTTPRequest request) throws ClientException
ClientException
public java.lang.String getUrl()
getUrl
in class com.streamscape.service.osf.clients.AbstractClientConnection
public java.lang.String toString()
toString
in class java.lang.Object
public com.streamscape.sef.factory.connection.FactoryConnectionService createConnectionService()
createConnectionService
in interface UsableClientConnection
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.