Class HttpPublishOperation<D,P extends Publishable>
- java.lang.Object
-
- edu.wpi.grip.core.operations.network.NetworkPublishOperation<D>
-
- edu.wpi.grip.core.operations.network.PublishAnnotatedOperation<D,P>
-
- edu.wpi.grip.core.operations.network.http.HttpPublishOperation<D,P>
-
- All Implemented Interfaces:
Operation
public class HttpPublishOperation<D,P extends Publishable> extends PublishAnnotatedOperation<D,P>
An operation for publishing data to the internal HTTP server, from which which remote applications can request the data.- See Also:
GripServer
-
-
Field Summary
-
Fields inherited from class edu.wpi.grip.core.operations.network.NetworkPublishOperation
dataSocket, dataType, nameSocket
-
-
Constructor Summary
Constructors Constructor Description HttpPublishOperation(InputSocket.Factory isf, java.lang.Class<D> dataType, java.lang.Class<P> publishType, java.util.function.Function<D,P> converter, MapNetworkPublisherFactory factory)
HttpPublishOperation(InputSocket.Factory isf, java.lang.Class<P> dataType, MapNetworkPublisherFactory factory)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperationDescription
descriptionFor(java.lang.Class<?> dataType)
Gets a description for anHttpPublishOperation
that publishes the given data type.-
Methods inherited from class edu.wpi.grip.core.operations.network.PublishAnnotatedOperation
cleanUp, createFlagSockets, doPublish, get, getSocketType, valueMethodStream
-
Methods inherited from class edu.wpi.grip.core.operations.network.NetworkPublishOperation
getInputSockets, getOutputSockets, perform
-
-
-
-
Constructor Detail
-
HttpPublishOperation
public HttpPublishOperation(InputSocket.Factory isf, java.lang.Class<P> dataType, MapNetworkPublisherFactory factory)
-
HttpPublishOperation
public HttpPublishOperation(InputSocket.Factory isf, java.lang.Class<D> dataType, java.lang.Class<P> publishType, java.util.function.Function<D,P> converter, MapNetworkPublisherFactory factory)
-
-
Method Detail
-
descriptionFor
public static OperationDescription descriptionFor(java.lang.Class<?> dataType)
Gets a description for anHttpPublishOperation
that publishes the given data type.- Parameters:
dataType
- the type of the data published by theHttpPublishOperation
for the data type described- Returns:
- a description for an
HttpPublishOperation
that publishes the given data type
-
-