Class HTTPAgent
java.lang.Object
org.openremote.model.asset.Asset<T>
org.openremote.model.asset.agent.Agent<HTTPAgent,HTTPProtocol,HTTPAgentLink>
org.openremote.agent.protocol.http.HTTPAgent
- All Implemented Interfaces:
org.openremote.model.asset.AssetInfo
,org.openremote.model.IdentifiableEntity<HTTPAgent>
@Entity
public class HTTPAgent
extends org.openremote.model.asset.agent.Agent<HTTPAgent,HTTPProtocol,HTTPAgentLink>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openremote.model.asset.Asset
org.openremote.model.asset.Asset.AssetDeserializer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.openremote.model.value.AttributeDescriptor<String>
static final org.openremote.model.asset.agent.AgentDescriptor<HTTPAgent,
HTTPProtocol, HTTPAgentLink> static final org.openremote.model.value.AttributeDescriptor<Boolean>
static final org.openremote.model.value.AttributeDescriptor<org.openremote.model.value.ValueType.MultivaluedStringMap>
static final org.openremote.model.value.AttributeDescriptor<org.openremote.model.value.ValueType.MultivaluedStringMap>
static final org.openremote.model.value.AttributeDescriptor<Integer>
static final org.openremote.model.value.ValueDescriptor<org.openremote.model.http.HTTPMethod>
Fields inherited from class org.openremote.model.asset.agent.Agent
BIND_HOST, BIND_PORT, DISABLED, HOST, MESSAGE_CHARSET, MESSAGE_CONVERT_BINARY, MESSAGE_CONVERT_HEX, MESSAGE_DELIMITERS, MESSAGE_MAX_LENGTH, MESSAGE_STRIP_DELIMITER, OAUTH_GRANT, POLLING_MILLIS, PORT, SERIAL_BAUDRATE, SERIAL_PORT, STATUS, UPDATE_ON_WRITE, USERNAME_AND_PASSWORD
Fields inherited from class org.openremote.model.asset.Asset
accessPublicRead, attributes, createdOn, EMAIL, id, LOCATION, MANUFACTURER, MODEL, name, NOTES, parentId, path, realm, TAGS, type, version
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the protocol instance for this Agent.Optional<org.openremote.model.value.ValueType.MultivaluedStringMap>
Optional<org.openremote.model.value.ValueType.MultivaluedStringMap>
setBaseURI
(String value) setFollowRedirects
(Boolean value) setMessageConvertBinary
(Boolean value) setMessageConvertHex
(Boolean value) setRequestHeaders
(org.openremote.model.value.ValueType.MultivaluedStringMap value) setRequestQueryParameters
(org.openremote.model.value.ValueType.MultivaluedStringMap value) setRequestTimeoutMillis
(Integer value) Methods inherited from class org.openremote.model.asset.agent.Agent
getAgentLink, getAgentStatus, getBindHost, getBindPort, getHost, getOAuthGrant, getPollingMillis, getPort, getSerialBaudrate, getSerialPort, getUsernamePassword, isConfigurationAttribute, isDisabled, isUpdateOnWrite, setBindHost, setBindPort, setDisabled, setHost, setOAuthGrant, setPort, setSerialBaudrate, setSerialPort, setUpdateOnWrite, setUsernamePassword
Methods inherited from class org.openremote.model.asset.Asset
addAttributes, addOrReplaceAttributes, getAssetClass, getAssetName, getAssetType, getAttribute, getAttribute, getAttributeNames, getAttributes, getAttributesString, getCreatedOn, getEmail, getId, getLocation, getManufacturer, getMetaString, getModel, getName, getNotes, getParentId, getPath, getRealm, getTags, getType, getVersion, hasAttribute, hasAttribute, isAccessPublicRead, pathContains, postLoadCallback, setAccessPublicRead, setAttributes, setAttributes, setAttributes, setCreatedOn, setEmail, setId, setLocation, setManufacturer, setModel, setName, setNotes, setParent, setParentId, setRealm, setTags, setVersion, toString, toStringAll
-
Field Details
-
VALUE_HTTP_METHOD
public static final org.openremote.model.value.ValueDescriptor<org.openremote.model.http.HTTPMethod> VALUE_HTTP_METHOD -
BASE_URI
-
FOLLOW_REDIRECTS
-
REQUEST_HEADERS
public static final org.openremote.model.value.AttributeDescriptor<org.openremote.model.value.ValueType.MultivaluedStringMap> REQUEST_HEADERS -
REQUEST_QUERY_PARAMETERS
public static final org.openremote.model.value.AttributeDescriptor<org.openremote.model.value.ValueType.MultivaluedStringMap> REQUEST_QUERY_PARAMETERS -
REQUEST_TIMEOUT_MILLIS
-
DESCRIPTOR
public static final org.openremote.model.asset.agent.AgentDescriptor<HTTPAgent,HTTPProtocol, DESCRIPTORHTTPAgentLink>
-
-
Constructor Details
-
HTTPAgent
protected HTTPAgent()For use by hydrators (i.e. JPA/Jackson) -
HTTPAgent
-
-
Method Details
-
getBaseURI
-
setBaseURI
-
getFollowRedirects
-
setFollowRedirects
-
getRequestHeaders
-
setRequestHeaders
-
getRequestQueryParameters
public Optional<org.openremote.model.value.ValueType.MultivaluedStringMap> getRequestQueryParameters() -
setRequestQueryParameters
public HTTPAgent setRequestQueryParameters(org.openremote.model.value.ValueType.MultivaluedStringMap value) -
getRequestTimeoutMillis
-
setRequestTimeoutMillis
-
getMessageConvertHex
-
setMessageConvertHex
-
getMessageConvertBinary
-
setMessageConvertBinary
-
getProtocolInstance
Description copied from class:org.openremote.model.asset.agent.Agent
Get the protocol instance for this Agent.- Specified by:
getProtocolInstance
in classorg.openremote.model.asset.agent.Agent<HTTPAgent,
HTTPProtocol, HTTPAgentLink>
-