Class RequisitionProviderImpl
- java.lang.Object
-
- org.opennms.features.apilayer.requisition.RequisitionProviderImpl
-
- All Implemented Interfaces:
RequisitionProvider
public class RequisitionProviderImpl extends java.lang.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(java.util.Map<java.lang.String,java.lang.String> parameters)
Generate a request.Requisition
getRequisition(RequisitionRequest request)
Execute the request.java.lang.String
getType()
A string used to identify the provider type.java.lang.String
marshalRequest(RequisitionRequest request)
Marshals the request to aString
.RequisitionRequest
unmarshalRequest(java.lang.String marshaledRequest)
Unmarshals the request from aString
.
-
-
-
Method Detail
-
getType
public java.lang.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(java.util.Map<java.lang.String,java.lang.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 java.lang.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(java.lang.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:
-
-