BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.protocol.RequestFactory Interface Reference
Inheritance diagram for eu.baltrad.dex.net.protocol.RequestFactory:
eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory

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)
 

Detailed Description

Request factory.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.1.0
Since
1.1.0

Member Function Documentation

◆ createDataSourceListingRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createDataSourceListingRequest ( User user)

Creates a request for data sources

Parameters
userthe user information
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.

◆ createPostFileRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostFileRequest ( User user,
byte[] fileContent )

Creates a file request (sends a file)

Parameters
userthe user
fileContentthe content of the file
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.

◆ createPostKeyRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostKeyRequest ( User user,
byte[] keyContent )

Creates a key request (sends the key information)

Parameters
userthe user
keyContentthe content of the key
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.

◆ createPostMessageRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createPostMessageRequest ( User user,
String message )

Creates a message request

Parameters
userthe user
messagethe message to send
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.

◆ createStartSubscriptionRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createStartSubscriptionRequest ( User user,
Set< DataSource > dataSources )

Creates a request to start a subscription on data sources

Parameters
userthe user
dataSourcesthe data sources that is wanted
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.

◆ createUpdateSubscriptionRequest()

HttpUriRequest eu.baltrad.dex.net.protocol.RequestFactory.createUpdateSubscriptionRequest ( User user,
List< Subscription > subscriptions )

Creates a request to update the subscriptions

Parameters
userthe user
subscriptionsthe subscriptions
Returns
the request

Implemented in eu.baltrad.dex.net.protocol.impl.ProtocolVersionRequestFactory, and eu.baltrad.dex.net.request.factory.impl.DefaultRequestFactory.


The documentation for this interface was generated from the following file: