Class PutRequest

All Implemented Interfaces:
WsRequest

public class PutRequest extends RequestWithPayload<PutRequest>
Since:
5.3
  • Constructor Details

    • PutRequest

      public PutRequest(String path)
  • Method Details

    • getMethod

      public WsRequest.Method getMethod()
    • getPath

      public String getPath()
      Specified by:
      getPath in interface WsRequest
    • getMediaType

      public String getMediaType()
      Specified by:
      getMediaType in interface WsRequest
    • getTimeOutInMs

      public OptionalInt getTimeOutInMs()
      Specified by:
      getTimeOutInMs in interface WsRequest
    • setTimeOutInMs

      public <T extends SELF> T setTimeOutInMs(int timeOutInMs)
    • getWriteTimeOutInMs

      public OptionalInt getWriteTimeOutInMs()
      Specified by:
      getWriteTimeOutInMs in interface WsRequest
    • setWriteTimeOutInMs

      public <T extends SELF> T setWriteTimeOutInMs(int writeTimeOutInMs)
    • setMediaType

      public <T extends SELF> T setMediaType(String s)
      Expected media type of response. Default is MediaTypes.JSON.
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable String value)
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable Integer value)
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable Long value)
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable Float value)
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable Boolean value)
    • setParam

      public <T extends SELF> T setParam(String key, @Nullable Collection<? extends Object> values)
    • getParams

      public Map<String,String> getParams()
      Description copied from interface: WsRequest
      In case of multi value parameters, returns the first value
      Specified by:
      getParams in interface WsRequest
    • getParameters

      public Parameters getParameters()
      Specified by:
      getParameters in interface WsRequest
    • getHeaders

      public Headers getHeaders()
      Specified by:
      getHeaders in interface WsRequest
    • setHeader

      public <T extends SELF> T setHeader(String name, @Nullable String value)