Class Request

  • Direct Known Subclasses:
    Patch

    public abstract class Request
    extends java.lang.Object
    Base HTTP Request class
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Request.Builder
      HTTP Request Builder class
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SESSION_HEADER  
    • Constructor Summary

      Constructors 
      Constructor Description
      Request​(javax.ws.rs.client.WebTarget service)
      Request without JSON body
      Request​(javax.ws.rs.client.WebTarget service, javax.ws.rs.client.Entity<?> body)
      Request with JSON body
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract javax.ws.rs.core.Response send()  
      abstract javax.ws.rs.core.Response send​(java.lang.String session)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Request

        public Request​(javax.ws.rs.client.WebTarget service)
        Request without JSON body
        Parameters:
        service - target url
      • Request

        public Request​(javax.ws.rs.client.WebTarget service,
                       javax.ws.rs.client.Entity<?> body)
        Request with JSON body
        Parameters:
        service -
        body - JSON request body
    • Method Detail

      • send

        public abstract javax.ws.rs.core.Response send()
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • send

        public abstract javax.ws.rs.core.Response send​(java.lang.String session)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception