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
ConfigurationException
public void close()
close
in interface RemoteConnector
protected byte[] toBytes(RestEntity entity) throws RestException
RestException
protected ClientResponse doRequest(RemotingContext context, String connectionString) throws RemoteException
RemoteException
protected ClientResponse doRequest(RemotingContext context, String connectionString, Map<String,String> params) throws RemoteException
RemoteException
protected ClientResponse doRequest(RemotingContext context, String connectionString, Map<String,String> params, String postBody, RemoteRestConnector.REQUEST_MODE mode) throws RemoteException
RemoteException
protected ClientResponse doInternalRequest(RemotingContext context, String connectionString, Map<String,String> params, byte[] postStream, RemoteRestConnector.REQUEST_MODE mode) throws RemoteException
RemoteException
Copyright © 2015. All rights reserved.