Interface INetwork

  • All Known Implementing Classes:
    NetworkImpl

    public interface INetwork
    • Method Detail

      • create

        void create​(java.lang.String url,
                    java.lang.String method)
             throws java.io.IOException
        Throws:
        java.io.IOException
      • configure

        void configure()
                throws java.io.IOException
        Throws:
        java.io.IOException
      • connect

        void connect()
              throws java.io.IOException
        Throws:
        java.io.IOException
      • disconnect

        void disconnect()
      • addHeader

        void addHeader​(java.lang.String key,
                       java.lang.String value)
      • addBody

        void addBody​(java.lang.String body)
      • readFully

        byte[] readFully()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getStatusCode

        int getStatusCode()