public class RESTActivityConfigurationBean extends Object implements Serializable
Constructor and Description |
---|
RESTActivityConfigurationBean() |
RESTActivityConfigurationBean(com.fasterxml.jackson.databind.JsonNode json) |
public RESTActivityConfigurationBean()
public RESTActivityConfigurationBean(com.fasterxml.jackson.databind.JsonNode json)
public static RESTActivityConfigurationBean getDefaultInstance()
RESTActivityConfigurationBean
pre-configured with default settings for all parameters.public boolean isValid()
httpMethod
is known to be valid - it's an enum; urlSignature
- uses
URISignatureHandler.isValid(String)
to test validity; acceptsHeaderValue
and contentTypeForUpdates
must not be empty. contentTypeForUpdates
is only checked if the
httpMethod
is such that it is meant to use the Content-Type
header (that is POST / PUT only).true
if the configuration in the bean is valid;
false
otherwise.public void setHttpMethod(RESTActivity.HTTP_METHOD httpMethod)
public RESTActivity.HTTP_METHOD getHttpMethod()
public String getUrlSignature()
public void setUrlSignature(String urlSignature)
public String getAcceptsHeaderValue()
public void setAcceptsHeaderValue(String acceptsHeaderValue)
public String getContentTypeForUpdates()
public void setContentTypeForUpdates(String contentTypeForUpdates)
public RESTActivity.DATA_FORMAT getOutgoingDataFormat()
public void setOutgoingDataFormat(RESTActivity.DATA_FORMAT outgoingDataFormat)
public boolean getSendHTTPExpectRequestHeader()
public void setSendHTTPExpectRequestHeader(boolean sendHTTPExpectRequestHeader)
public boolean getShowRedirectionOutputPort()
public void setShowRedirectionOutputPort(boolean showRedirectionOutputPort)
public void setEscapeParameters(boolean escapeParameters)
public boolean getEscapeParameters()
public boolean getShowActualUrlPort()
public void setShowActualUrlPort(boolean showActualUrlPort)
showActualUrlPort
- the showActualUrlPort to setpublic boolean getShowResponseHeadersPort()
public void setShowResponseHeadersPort(boolean showResponseHeadersPort)
showResponseHeadersPort
- the showResponseHeadersPort to setpublic HTTPRequest getRequest()
public void setRequest(HTTPRequest request)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.