public final class HttpEntityConnectionProvider extends AbstractEntityConnectionProvider<org.jminor.framework.db.http.HttpEntityConnection>
HTTP_CLIENT_HOST_NAME
,
HTTP_CLIENT_PORT
,
HTTP_CLIENT_SECURE
Modifier and Type | Field and Description |
---|---|
static PropertyValue<java.lang.String> |
HTTP_CLIENT_HOST_NAME
The host on which to locate the http server
Value type: String Default value: localhost |
static PropertyValue<java.lang.Integer> |
HTTP_CLIENT_PORT
The port which the http client should use.
Value type: Integer Default value: 8080 |
static PropertyValue<java.lang.Boolean> |
HTTP_CLIENT_SECURE
Specifies whether https should be used.
Value types: Boolean Default value: true |
IS_CONNECTED
CLIENT_CONNECTION_TYPE, CLIENT_DOMAIN_CLASS, CONNECTION_TYPE_HTTP, CONNECTION_TYPE_LOCAL, CONNECTION_TYPE_REMOTE
Constructor and Description |
---|
HttpEntityConnectionProvider()
Instantiates a new HttpEntityConnectionProvider.
|
HttpEntityConnectionProvider(java.lang.String serverHostName,
java.lang.Integer serverPort,
java.lang.Boolean https)
Instantiates a new HttpEntityConnectionProvider.
|
Modifier and Type | Method and Description |
---|---|
protected org.jminor.framework.db.http.HttpEntityConnection |
connect() |
protected void |
disconnect(org.jminor.framework.db.http.HttpEntityConnection connection)
Disconnects the given connection
|
java.lang.String |
getConnectionType()
Returns a String specifying the type of connection provided by this connection provider
|
java.lang.String |
getDescription() |
java.lang.String |
getServerHostName() |
addOnConnectListener, disconnect, getClientId, getClientTypeId, getClientVersion, getConnection, getDomain, getDomainClassName, getDomainId, getUser, isConnected, isConnectionValid, removeOnConnectListener, setClientId, setClientTypeId, setClientVersion, setDomainClassName, setUser
public static final PropertyValue<java.lang.String> HTTP_CLIENT_HOST_NAME
public static final PropertyValue<java.lang.Integer> HTTP_CLIENT_PORT
public static final PropertyValue<java.lang.Boolean> HTTP_CLIENT_SECURE
public HttpEntityConnectionProvider()
public HttpEntityConnectionProvider(java.lang.String serverHostName, java.lang.Integer serverPort, java.lang.Boolean https)
serverHostName
- the server host nameserverPort
- the server porthttps
- true if https should be usedpublic java.lang.String getConnectionType()
public java.lang.String getDescription()
public java.lang.String getServerHostName()
protected org.jminor.framework.db.http.HttpEntityConnection connect()
connect
in class AbstractEntityConnectionProvider<org.jminor.framework.db.http.HttpEntityConnection>
protected void disconnect(org.jminor.framework.db.http.HttpEntityConnection connection)
disconnect
in class AbstractEntityConnectionProvider<org.jminor.framework.db.http.HttpEntityConnection>
connection
- the connection to be disconnected