Package org.bonitasoft.connectors.rest
Class AbstractRESTConnectorImpl
- java.lang.Object
-
- org.bonitasoft.engine.connector.AbstractConnector
-
- org.bonitasoft.connectors.rest.AbstractRESTConnectorImpl
-
- All Implemented Interfaces:
org.bonitasoft.engine.connector.Connector
- Direct Known Subclasses:
RESTConnector
public abstract class AbstractRESTConnectorImpl extends org.bonitasoft.engine.connector.AbstractConnector
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractRESTConnectorImpl()
-
Method Summary
-
Methods inherited from class org.bonitasoft.engine.connector.AbstractConnector
connect, disconnect, execute, executeBusinessLogic, getAPIAccessor, getExecutionContext, getInputParameter, getInputParameter, getOutputParameters, setAPIAccessor, setExecutionContext, setInputParameters, setOutputParameter
-
-
-
-
Field Detail
-
URL_INPUT_PARAMETER
protected static final String URL_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
METHOD_INPUT_PARAMETER
protected static final String METHOD_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
CONTENTTYPE_INPUT_PARAMETER
protected static final String CONTENTTYPE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
CHARSET_INPUT_PARAMETER
protected static final String CHARSET_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
URLCOOKIES_INPUT_PARAMETER
protected static final String URLCOOKIES_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
URLHEADERS_INPUT_PARAMETER
protected static final String URLHEADERS_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
DOCUMENT_BODY_INPUT_PARAMETER
protected static final String DOCUMENT_BODY_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
BODY_INPUT_PARAMETER
protected static final String BODY_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
DO_NOT_FOLLOW_REDIRECT_INPUT_PARAMETER
protected static final String DO_NOT_FOLLOW_REDIRECT_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
IGNORE_BODY_INPUT_PARAMETER
protected static final String IGNORE_BODY_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
TRUST_CERTIFICATE_STRATEGY_INPUT_PARAMETER
protected static final String TRUST_CERTIFICATE_STRATEGY_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
TLS_INPUT_PARAMETER
protected static final String TLS_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
HOSTNAME_VERIFIER_INPUT_PARAMETER
protected static final String HOSTNAME_VERIFIER_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
TRUST_STORE_FILE_INPUT_PARAMETER
protected static final String TRUST_STORE_FILE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
TRUST_STORE_PASSWORD_INPUT_PARAMETER
protected static final String TRUST_STORE_PASSWORD_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
KEY_STORE_FILE_INPUT_PARAMETER
protected static final String KEY_STORE_FILE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
KEY_STORE_PASSWORD_INPUT_PARAMETER
protected static final String KEY_STORE_PASSWORD_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_TYPE_PARAMETER
protected static final String AUTH_TYPE_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_USERNAME_INPUT_PARAMETER
protected static final String AUTH_USERNAME_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_PASSWORD_INPUT_PARAMETER
protected static final String AUTH_PASSWORD_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_HOST_INPUT_PARAMETER
protected static final String AUTH_HOST_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_PORT_INPUT_PARAMETER
protected static final String AUTH_PORT_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_REALM_INPUT_PARAMETER
protected static final String AUTH_REALM_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
AUTH_PREEMPTIVE_INPUT_PARAMETER
protected static final String AUTH_PREEMPTIVE_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PROXY_PROTOCOL_INPUT_PARAMETER
protected static final String PROXY_PROTOCOL_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PROXY_HOST_INPUT_PARAMETER
protected static final String PROXY_HOST_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PROXY_PORT_INPUT_PARAMETER
protected static final String PROXY_PORT_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PROXY_USERNAME_INPUT_PARAMETER
protected static final String PROXY_USERNAME_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
PROXY_PASSWORD_INPUT_PARAMETER
protected static final String PROXY_PASSWORD_INPUT_PARAMETER
- See Also:
- Constant Field Values
-
BODY_AS_STRING_OUTPUT_PARAMETER
protected static final String BODY_AS_STRING_OUTPUT_PARAMETER
- See Also:
- Constant Field Values
-
BODY_AS_OBJECT_OUTPUT_PARAMETER
protected static final String BODY_AS_OBJECT_OUTPUT_PARAMETER
- See Also:
- Constant Field Values
-
HEADERS_OUTPUT_PARAMETER
protected static final String HEADERS_OUTPUT_PARAMETER
- See Also:
- Constant Field Values
-
STATUS_CODE_OUTPUT_PARAMETER
protected static final String STATUS_CODE_OUTPUT_PARAMETER
- See Also:
- Constant Field Values
-
STATUS_MESSAGE_OUTPUT_PARAMETER
protected static final String STATUS_MESSAGE_OUTPUT_PARAMETER
- See Also:
- Constant Field Values
-
SOCKET_TIMEOUT_MS_PARAMETER
protected static final String SOCKET_TIMEOUT_MS_PARAMETER
- See Also:
- Constant Field Values
-
CONNECTION_TIMEOUT_MS_PARAMETER
protected static final String CONNECTION_TIMEOUT_MS_PARAMETER
- See Also:
- Constant Field Values
-
SOCKET_TIMEOUT_MS_DEFAULT_VALUE
protected static final int SOCKET_TIMEOUT_MS_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
CONNECTION_TIMEOUT_MS_DEFAULT_VALUE
protected static final int CONNECTION_TIMEOUT_MS_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUrl
protected final String getUrl()
-
getMethod
protected String getMethod()
-
getContentType
protected final String getContentType()
-
getCharset
protected final String getCharset()
-
getDocumentBody
protected final String getDocumentBody()
-
getBody
protected final String getBody()
-
getTLS
protected final Boolean getTLS()
-
getTrustCertificateStrategy
protected final TrustCertificateStrategy getTrustCertificateStrategy()
-
getHostnameVerifier
protected final SSLVerifier getHostnameVerifier()
-
getTrustStoreFile
protected final String getTrustStoreFile()
-
getTrustStorePassword
protected final String getTrustStorePassword()
-
getKeyStoreFile
protected final String getKeyStoreFile()
-
getKeyStorePassword
protected final String getKeyStorePassword()
-
getDoNotFollowRedirect
protected final Boolean getDoNotFollowRedirect()
-
getIgnoreBody
protected final Boolean getIgnoreBody()
-
getAuthUsername
protected final String getAuthUsername()
-
getAuthPassword
protected final String getAuthPassword()
-
getAuthHost
protected final String getAuthHost()
-
getAuthPort
protected final Integer getAuthPort()
-
getAuthRealm
protected final String getAuthRealm()
-
getAuthPreemptive
protected final Boolean getAuthPreemptive()
-
getAuthType
protected final AuthorizationType getAuthType()
-
getProxyProtocol
protected final String getProxyProtocol()
-
getProxyHost
protected final String getProxyHost()
-
getProxyPort
protected final Integer getProxyPort()
-
getProxyUsername
protected final String getProxyUsername()
-
getProxyPassword
protected final String getProxyPassword()
-
getSocketTimeoutMs
protected final Integer getSocketTimeoutMs()
-
getConnectionTimeoutMs
protected final Integer getConnectionTimeoutMs()
-
setBody
protected void setBody(String body)
-
setBody
protected void setBody(Object body)
-
setStatusCode
protected void setStatusCode(Integer statusCode)
-
setStatusMessage
protected void setStatusMessage(String statusMessage)
-
validateInputParameters
public void validateInputParameters() throws org.bonitasoft.engine.connector.ConnectorValidationException- Throws:
org.bonitasoft.engine.connector.ConnectorValidationException
-
hasBody
public abstract boolean hasBody()
-
-