BaltradDex
BALTRAD Data Exchange System
|
Public Member Functions | |
HttpUriRequest | createDataSourceListingRequest (User user) |
HttpUriRequest | createStartSubscriptionRequest (User user, Set< DataSource > dataSources) |
HttpUriRequest | createUpdateSubscriptionRequest (User user, List< Subscription > subscriptions) |
HttpUriRequest | createPostFileRequest (User user, byte[] fileContent) |
HttpUriRequest | createPostMessageRequest (User user, String message) |
HttpUriRequest | createPostKeyRequest (User user, byte[] keyContent) |
Request factory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createDataSourceListingRequest | ( | User | user | ) |
Creates a request for data sources
user | the user information |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostFileRequest | ( | User | user, |
byte[] | fileContent ) |
Creates a file request (sends a file)
user | the user |
fileContent | the content of the file |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostKeyRequest | ( | User | user, |
byte[] | keyContent ) |
Creates a key request (sends the key information)
user | the user |
keyContent | the content of the key |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostMessageRequest | ( | User | user, |
String | message ) |
Creates a message request
user | the user |
message | the message to send |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createStartSubscriptionRequest | ( | User | user, |
Set< DataSource > | dataSources ) |
Creates a request to start a subscription on data sources
user | the user |
dataSources | the data sources that is wanted |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.
HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createUpdateSubscriptionRequest | ( | User | user, |
List< Subscription > | subscriptions ) |
Creates a request to update the subscriptions
user | the user |
subscriptions | the subscriptions |
Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.