Class HTTPAgentLink
java.lang.Object
org.openremote.model.asset.agent.AgentLink<HTTPAgentLink>
org.openremote.agent.protocol.http.HTTPAgentLink
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected boolean
protected boolean
protected org.openremote.model.http.HTTPMethod
protected Boolean
protected String
protected String
protected Integer
Fields inherited from class org.openremote.model.asset.agent.AgentLink
id, messageMatchFilters, messageMatchPredicate, updateOnWrite, valueConverter, valueFilters, writeValue, writeValueConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional
<org.openremote.model.http.HTTPMethod> getPath()
boolean
boolean
setContentType
(String contentType) setHeaders
(org.openremote.model.value.ValueType.MultivaluedStringMap headers) setMessageConvertBinary
(boolean messageConvertBinary) setMessageConvertHex
(boolean messageConvertHex) setMethod
(org.openremote.model.http.HTTPMethod method) setPagingMode
(Boolean pagingMode) setPollingAttribute
(String pollingAttribute) setPollingMillis
(Integer pollingMillis) setQueryParameters
(org.openremote.model.value.ValueType.MultivaluedStringMap queryParameters) Methods inherited from class org.openremote.model.asset.agent.AgentLink
getId, getMessageMatchFilters, getMessageMatchPredicate, getOrThrowAgentLinkProperty, getType, getUpdateOnWrite, getValueConverter, getValueFilters, getWriteValue, getWriteValueConverter, setMessageMatchFilters, setMessageMatchPredicate, setUpdateOnWrite, setValueConverter, setValueFilters, setWriteValue, setWriteValueConverter
-
Field Details
-
headers
-
queryParameters
@JsonPropertyDescription("A JSON object of query parameters to be added to HTTP request URL; the key represents the name of the query parameter and for each string value supplied a new query parameter will be added with the key name and specified string value (e.g. \'https://..../?test=1&test=2\')") protected Map<String,List<String>> queryParameters -
pollingMillis
@JsonPropertyDescription("Indicates that this HTTP request is used to update the linked attribute; this value indicates how frequently the HTTP request is made in order to update the linked attribute value") protected Integer pollingMillis -
pagingMode
@JsonPropertyDescription("Indicates that the HTTP server supports pagination using the standard Link header mechanism") protected Boolean pagingMode -
path
@JsonPropertyDescription("The URL path to append to the agents Base URL when making requests for this linked attribute") protected String path -
method
@JsonPropertyDescription("The HTTP method to use when making requests for this linked attribute") protected org.openremote.model.http.HTTPMethod method -
contentType
@JsonPropertyDescription("The content type header value to use when making requests for this linked attribute (shortcut alternative to using headers parameter)") protected String contentType -
pollingAttribute
@JsonPropertyDescription("Allows the polled response to be written to another attribute with the specified name on the same asset as the linked attribute") protected String pollingAttribute -
messageConvertBinary
@JsonPropertyDescription("Indicates that the HTTP response is binary and should be converted to binary string representation") protected boolean messageConvertBinary -
messageConvertHex
@JsonPropertyDescription("Indicates that the HTTP response is binary and should be converted to hexadecimal string representation") protected boolean messageConvertHex
-
-
Constructor Details
-
HTTPAgentLink
protected HTTPAgentLink() -
HTTPAgentLink
-
-
Method Details
-
getHeaders
-
setHeaders
-
getQueryParameters
-
setQueryParameters
public HTTPAgentLink setQueryParameters(org.openremote.model.value.ValueType.MultivaluedStringMap queryParameters) -
getPollingMillis
-
setPollingMillis
-
getPagingMode
-
setPagingMode
-
getPath
-
setPath
-
getMethod
-
setMethod
-
getContentType
-
setContentType
-
getPollingAttribute
-
setPollingAttribute
-
isMessageConvertBinary
public boolean isMessageConvertBinary() -
setMessageConvertBinary
-
isMessageConvertHex
public boolean isMessageConvertHex() -
setMessageConvertHex
-