Class Http

  • All Implemented Interfaces:
    Recyclable

    public class Http
    extends java.lang.Object
    implements Recyclable
    • Constructor Detail

      • Http

        public Http()
    • Method Detail

      • getUrl

        public java.lang.CharSequence getUrl()
        URL used for the outgoing HTTP call
      • getInternalUrl

        public Url getInternalUrl()
        Returns:
        internal Url instance
      • getMethod

        @Nullable
        public java.lang.String getMethod()
      • getStatusCode

        public int getStatusCode()
      • withUrl

        public Http withUrl​(@Nullable
                            java.lang.String url)
        URL used for the outgoing HTTP call
      • withMethod

        public Http withMethod​(java.lang.String method)
      • withStatusCode

        public Http withStatusCode​(int statusCode)
      • resetState

        public void resetState()
        Description copied from interface: Recyclable
        resets pooled object state so it can be reused
        Specified by:
        resetState in interface Recyclable
      • hasContent

        public boolean hasContent()
      • copyFrom

        public void copyFrom​(Http other)