Interface JSONWebServiceClient
- All Known Implementing Classes:
BaseJSONWebServiceClientImpl
public interface JSONWebServiceClient
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()doDelete(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) doGet(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) <V,T> List <V> doGetToList(Class<T> clazz, String url, String... parametersArray) <V,T> List <V> doGetToList(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) <T> TdoGetToObject(Class<T> clazz, String url, String... parametersArray) doPost(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) doPostAsJSON(String url, Object object) doPostAsJSON(String url, String json) doPostAsJSON(String url, String json, List<org.apache.http.NameValuePair> headers) <T> TdoPostToObject(Class<T> clazz, String url, String... parametersArray) <T> TdoPostToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) doPut(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) <T> TdoPutToObject(Class<T> clazz, String url, String... parametersArray) <T> TdoPutToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters) <T> TdoPutToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) intvoidregisterModule(com.fasterxml.jackson.databind.Module module) voidvoidsetHostName(String hostName) voidsetHostPort(int hostPort) voidsetKeyStore(KeyStore keyStore) voidvoidsetMaxAttempts(int maxAttempts) voidsetOAuthAccessSecret(String oAuthAccessSecret) voidsetOAuthAccessToken(String oAuthAccessToken) voidsetOAuthConsumerKey(String oAuthConsumerKey) voidsetOAuthConsumerSecret(String oAuthConsumerSecret) voidsetPassword(String password) voidsetProtocol(String protocol) default voidsetTrustSelfSignedCertificates(boolean trustSelfSignedCertificates)
-
Method Details
-
destroy
void destroy() -
doDelete
String doDelete(String url, List<org.apache.http.NameValuePair> parameters) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doDelete
String doDelete(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doDelete
String doDelete(String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doGet
String doGet(String url, List<org.apache.http.NameValuePair> parameters) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doGet
String doGet(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doGet
String doGet(String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doGetToList
<V,T> List<V> doGetToList(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doGetToList
<V,T> List<V> doGetToList(Class<T> clazz, String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doGetToObject
<T> T doGetToObject(Class<T> clazz, String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPost
String doPost(String url, List<org.apache.http.NameValuePair> parameters) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPost
String doPost(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPost
String doPost(String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPostAsJSON
String doPostAsJSON(String url, Object object) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPostAsJSON
String doPostAsJSON(String url, String json) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPostAsJSON
String doPostAsJSON(String url, String json, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPostToObject
<T> T doPostToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPostToObject
<T> T doPostToObject(Class<T> clazz, String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPut
String doPut(String url, List<org.apache.http.NameValuePair> parameters) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPut
String doPut(String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPut
String doPut(String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceTransportException -
doPutToObject
<T> T doPutToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPutToObject
<T> T doPutToObject(Class<T> clazz, String url, List<org.apache.http.NameValuePair> parameters, List<org.apache.http.NameValuePair> headers) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
doPutToObject
<T> T doPutToObject(Class<T> clazz, String url, String... parametersArray) throws JSONWebServiceInvocationException, JSONWebServiceSerializeException, JSONWebServiceTransportException -
getHostName
String getHostName() -
getHostPort
int getHostPort() -
getProtocol
String getProtocol() -
registerModule
void registerModule(com.fasterxml.jackson.databind.Module module) -
resetHttpClient
void resetHttpClient() -
setHostName
-
setHostPort
void setHostPort(int hostPort) -
setKeyStore
-
setLogin
-
setMaxAttempts
void setMaxAttempts(int maxAttempts) -
setOAuthAccessSecret
-
setOAuthAccessToken
-
setOAuthConsumerKey
-
setOAuthConsumerSecret
-
setPassword
-
setProtocol
-
setTrustSelfSignedCertificates
default void setTrustSelfSignedCertificates(boolean trustSelfSignedCertificates)
-