public class RemoteRestConnector extends Object implements RemoteConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
RemoteRestConnector.REQUEST_MODE |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CHARACTER_ENCODING |
static String |
CONNECTION_HOST_PROPERTY |
static String |
CONNECTION_PORT_PROPERTY |
static String |
REQUESTCONTEXT |
| Constructor and Description |
|---|
RemoteRestConnector(NodeInformation nodeInformation) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected ClientResponse |
doInternalRequest(RemotingContext context,
String connectionString,
Map<String,String> params,
byte[] postStream,
RemoteRestConnector.REQUEST_MODE mode) |
protected ClientResponse |
doRequest(RemotingContext context,
String connectionString) |
protected ClientResponse |
doRequest(RemotingContext context,
String connectionString,
Map<String,String> params) |
protected ClientResponse |
doRequest(RemotingContext context,
String connectionString,
Map<String,String> params,
String postBody,
RemoteRestConnector.REQUEST_MODE mode) |
protected byte[] |
toBytes(RestEntity entity) |
String |
toString() |
protected static final String CHARACTER_ENCODING
public static final String REQUESTCONTEXT
public static final String CONNECTION_HOST_PROPERTY
public static final String CONNECTION_PORT_PROPERTY
public RemoteRestConnector(NodeInformation nodeInformation) throws ConfigurationException
ConfigurationExceptionpublic void close()
close in interface RemoteConnectorprotected byte[] toBytes(RestEntity entity) throws RestException
RestExceptionprotected ClientResponse doRequest(RemotingContext context, String connectionString) throws RemoteException
RemoteExceptionprotected ClientResponse doRequest(RemotingContext context, String connectionString, Map<String,String> params) throws RemoteException
RemoteExceptionprotected ClientResponse doRequest(RemotingContext context, String connectionString, Map<String,String> params, String postBody, RemoteRestConnector.REQUEST_MODE mode) throws RemoteException
RemoteExceptionprotected ClientResponse doInternalRequest(RemotingContext context, String connectionString, Map<String,String> params, byte[] postStream, RemoteRestConnector.REQUEST_MODE mode) throws RemoteException
RemoteExceptionCopyright © 2015. All rights reserved.