Class HttpBinJSON


  • public class HttpBinJSON
    extends java.lang.Object
    Maps to the JSON return values from http://httpbin.org.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpBinJSON()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object data()
      Gets the response body.
      void data​(java.lang.Object data)
      Sets the response body.
      java.util.Map<java.lang.String,​java.lang.String> headers()
      Gets the response headers.
      void headers​(java.util.Map<java.lang.String,​java.lang.String> headers)
      Sets the response headers.
      java.lang.String url()
      Gets the URL associated with this request.
      void url​(java.lang.String url)
      Sets the URL associated with this request.
      • Methods inherited from class java.lang.Object

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

      • HttpBinJSON

        public HttpBinJSON()
    • Method Detail

      • url

        public java.lang.String url()
        Gets the URL associated with this request.
        Returns:
        he URL associated with the request.
      • url

        public void url​(java.lang.String url)
        Sets the URL associated with this request.
        Parameters:
        url - The URL associated with the request.
      • headers

        public java.util.Map<java.lang.String,​java.lang.String> headers()
        Gets the response headers.
        Returns:
        The response headers.
      • headers

        public void headers​(java.util.Map<java.lang.String,​java.lang.String> headers)
        Sets the response headers.
        Parameters:
        headers - The response headers.
      • data

        public java.lang.Object data()
        Gets the response body.
        Returns:
        The response body.
      • data

        public void data​(java.lang.Object data)
        Sets the response body.
        Parameters:
        data - The response body.