Class ShipEngineRequest<I,O>
- java.lang.Object
-
- com.broadleafcommerce.shipping.service.integrations.shipengine.service.ShipEngineRequest<I,O>
-
- Type Parameters:
I- The type of Object in the request bodyO- The type for the response from the ShipEngine API
public class ShipEngineRequest<I,O> extends Object
Holds request header and body data needed by WebClient to exchange with the ShipEngine API
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <I,O>
ShipEngineRequest<String,O>buildGetRequest(String uri, Class<O> responseType)static <I,O>
ShipEngineRequest<I,O>buildPostRequest(String uri, I requestObject, Class<O> responseType)org.springframework.http.HttpMethodgetHttpMethod()StringgetPath()IgetRequestObject()Class<O>getReturnType()
-
-
-
Method Detail
-
buildGetRequest
public static <I,O> ShipEngineRequest<String,O> buildGetRequest(String uri, Class<O> responseType)
-
buildPostRequest
public static <I,O> ShipEngineRequest<I,O> buildPostRequest(String uri, I requestObject, Class<O> responseType)
-
getHttpMethod
public org.springframework.http.HttpMethod getHttpMethod()
-
getPath
public String getPath()
-
getRequestObject
public I getRequestObject()
-
-