Class NetworkImpl

  • All Implemented Interfaces:
    INetwork

    public class NetworkImpl
    extends java.lang.Object
    implements INetwork
    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkImpl()  
    • Constructor Detail

      • NetworkImpl

        public NetworkImpl()
    • Method Detail

      • create

        public void create​(java.lang.String url,
                           java.lang.String method)
                    throws java.io.IOException
        Specified by:
        create in interface INetwork
        Throws:
        java.io.IOException
      • configure

        public void configure()
                       throws java.io.IOException
        Specified by:
        configure in interface INetwork
        Throws:
        java.io.IOException
      • connect

        public void connect()
                     throws java.io.IOException
        Specified by:
        connect in interface INetwork
        Throws:
        java.io.IOException
      • addHeader

        public void addHeader​(java.lang.String key,
                              java.lang.String value)
        Specified by:
        addHeader in interface INetwork
      • addBody

        public void addBody​(java.lang.String body)
        Specified by:
        addBody in interface INetwork
      • readFully

        public byte[] readFully()
                         throws java.io.IOException
        Specified by:
        readFully in interface INetwork
        Throws:
        java.io.IOException