Class ShipEngineRequest<I,​O>

  • Type Parameters:
    I - The type of Object in the request body
    O - 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 Detail

      • 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()
      • getReturnType

        public Class<O> getReturnType()