SymbIoTeLibraries
Classes | Public Member Functions | List of all members
eu.h2020.symbiote.client.feign.FeignRAPClient Class Reference
Inheritance diagram for eu.h2020.symbiote.client.feign.FeignRAPClient:
Inheritance graph
Collaboration diagram for eu.h2020.symbiote.client.feign.FeignRAPClient:
Collaboration graph

Public Member Functions

 FeignRAPClient (ISecurityHandler securityHandler)
 
Observation getLatestObservation (String resourceUrl, boolean serverValidation, Set< String > homePlatformIds)
 
List< ObservationgetTopObservations (String resourceUrl, int top, boolean serverValidation, Set< String > homePlatformIds)
 
void actuate (String resourceUrl, String body, boolean serverValidation, Set< String > homePlatformIds)
 
String invokeService (String resourceUrl, String body, boolean serverValidation, Set< String > homePlatformIds)
 
Observation getLatestObservationAsGuest (String resourceUrl, boolean serverValidation)
 
List< ObservationgetTopObservationsAsGuest (String resourceUrl, int top, boolean serverValidation)
 
void actuateAsGuest (String resourceUrl, String body, boolean serverValidation)
 
String invokeServiceAsGuest (String resourceUrl, String body, boolean serverValidation)
 

Detailed Description

symbIoTe RAP client based on Feign

Author
Vasilis Glykantzis

Constructor & Destructor Documentation

◆ FeignRAPClient()

eu.h2020.symbiote.client.feign.FeignRAPClient.FeignRAPClient ( ISecurityHandler  securityHandler)
Parameters
securityHandlerthe security handler implementation that is going to be used

Member Function Documentation

◆ actuate()

void eu.h2020.symbiote.client.feign.FeignRAPClient.actuate ( String  resourceUrl,
String  body,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Send actuation request

Parameters
resourceUrlthe resource url
bodythe message that will be sent
serverValidationif true it will validate RAP
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ actuateAsGuest()

void eu.h2020.symbiote.client.feign.FeignRAPClient.actuateAsGuest ( String  resourceUrl,
String  body,
boolean  serverValidation 
)

Send actuation request without validating RAP

Parameters
resourceUrlthe resource url
bodythe message that will be sent
serverValidationif true it will validate RAP

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ getLatestObservation()

Observation eu.h2020.symbiote.client.feign.FeignRAPClient.getLatestObservation ( String  resourceUrl,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Get the latest observation

Parameters
resourceUrlthe resource url
serverValidationif true it will validate RAP
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request
Returns
an Observation

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ getLatestObservationAsGuest()

Observation eu.h2020.symbiote.client.feign.FeignRAPClient.getLatestObservationAsGuest ( String  resourceUrl,
boolean  serverValidation 
)

Get the latest observation without validating RAP

Parameters
resourceUrlthe resource url
serverValidationif true it will validate RAP
Returns
an Observation

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ getTopObservations()

List<Observation> eu.h2020.symbiote.client.feign.FeignRAPClient.getTopObservations ( String  resourceUrl,
int  top,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Get the latest top observations

Parameters
resourceUrlthe resource url
topthe number of observations
serverValidationif true it will validate RAP
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request
Returns
a list of Observation

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ getTopObservationsAsGuest()

List<Observation> eu.h2020.symbiote.client.feign.FeignRAPClient.getTopObservationsAsGuest ( String  resourceUrl,
int  top,
boolean  serverValidation 
)

Get the latest top observations without validating RAP

Parameters
resourceUrlthe resource url
topthe number of observations
serverValidationif true it will validate RAP
Returns
a list of Observation

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ invokeService()

String eu.h2020.symbiote.client.feign.FeignRAPClient.invokeService ( String  resourceUrl,
String  body,
boolean  serverValidation,
Set< String >  homePlatformIds 
)

Invoke Service

Parameters
resourceUrlthe resource url
bodythe message that will be sent
serverValidationif true it will validate RAP
homePlatformIdsa set of home platform ids from which we are going to get credentials for the request
Returns
a response of the service invocation in json format

Implements eu.h2020.symbiote.client.interfaces.RAPClient.

◆ invokeServiceAsGuest()

String eu.h2020.symbiote.client.feign.FeignRAPClient.invokeServiceAsGuest ( String  resourceUrl,
String  body,
boolean  serverValidation 
)

Invoke Service without validating RAP

Parameters
resourceUrlthe resource url
bodythe message that will be sent
serverValidationif true it will validate RAP

Implements eu.h2020.symbiote.client.interfaces.RAPClient.


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