Package org.hypermedea.ros
Class ROSSubscribeOperation
java.lang.Object
org.hypermedea.op.BaseOperation
org.hypermedea.ros.ROSOperation
org.hypermedea.ros.ROSSubscribeOperation
- All Implemented Interfaces:
org.hypermedea.op.Operation
-
Field Summary
Fields inherited from class org.hypermedea.ros.ROSOperation
DEFAULT_MESSAGE_TYPE, topicFields inherited from class org.hypermedea.op.BaseOperation
DEFAULT_TIMEOUT, form, operationStarted, payload, targetFields inherited from interface org.hypermedea.op.Operation
DELETE, GET, METHOD_NAME_FIELD, PATCH, POST, PUT, WATCH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetTopicName(String path) Map the path element of the operation's target URI to a ROS topic.protected voidMethods inherited from class org.hypermedea.ros.ROSOperation
buildJson, getDefaultMessageType, parseJson, parseJsonNumberMethods inherited from class org.hypermedea.op.BaseOperation
end, getForm, getMethod, getPayload, getResponse, getTargetURI, isAsync, isIdempotent, isSafe, onError, onResponse, registerResponseCallback, sendRequest, setPayload, setPayload, setTimeout, toString, unregisterResponseCallback
-
Constructor Details
-
ROSSubscribeOperation
-
-
Method Details
-
sendSingleRequest
- Overrides:
sendSingleRequestin classROSOperation- Throws:
IOException
-
getTopicName
Description copied from class:ROSOperationMap the path element of the operation's target URI to a ROS topic.- Specified by:
getTopicNamein classROSOperation- Parameters:
path- path of the target URI declared in the input form- Returns:
- a full topic name for the operation
-