Class RequisitionProviderImpl
- java.lang.Object
-
- org.opennms.features.apilayer.requisition.RequisitionProviderImpl
-
- All Implemented Interfaces:
RequisitionProvider
public class RequisitionProviderImpl extends Object implements RequisitionProvider
-
-
Constructor Summary
Constructors Constructor Description RequisitionProviderImpl(org.opennms.integration.api.v1.requisition.RequisitionProvider delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequisitionRequest
getRequest(Map<String,String> parameters)
Generate a request.Requisition
getRequisition(RequisitionRequest request)
Execute the request.String
getType()
A string used to identify the provider type.String
marshalRequest(RequisitionRequest request)
Marshals the request to aString
.RequisitionRequest
unmarshalRequest(String marshaledRequest)
Unmarshals the request from aString
.
-
-
-
Method Detail
-
getType
public String getType()
Description copied from interface:RequisitionProvider
A string used to identify the provider type. This string should be unique for every implementation.- Specified by:
getType
in interfaceRequisitionProvider
- Returns:
- the type string
-
getRequest
public RequisitionRequest getRequest(Map<String,String> parameters)
Description copied from interface:RequisitionProvider
Generate a request.- Specified by:
getRequest
in interfaceRequisitionProvider
- Returns:
-
getRequisition
public Requisition getRequisition(RequisitionRequest request)
Description copied from interface:RequisitionProvider
Execute the request.- Specified by:
getRequisition
in interfaceRequisitionProvider
- Returns:
-
marshalRequest
public String marshalRequest(RequisitionRequest request)
Description copied from interface:RequisitionProvider
Marshals the request to aString
. Used before sending the request to a Minion.- Specified by:
marshalRequest
in interfaceRequisitionProvider
- Returns:
-
unmarshalRequest
public RequisitionRequest unmarshalRequest(String marshaledRequest)
Description copied from interface:RequisitionProvider
Unmarshals the request from aString
. Used when received the request on a Minion.- Specified by:
unmarshalRequest
in interfaceRequisitionProvider
- Returns:
-
-