Class SWIFT_PING.ConnBuilder

  • Enclosing class:
    SWIFT_PING

    private static class SWIFT_PING.ConnBuilder
    extends java.lang.Object
    Build HttpURLConnections with adequate headers and method
    • Field Detail

      • con

        private final java.net.HttpURLConnection con
    • Constructor Detail

      • ConnBuilder

        public ConnBuilder​(java.net.URL url)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • ConnBuilder

        public ConnBuilder​(SWIFT_PING.Credentials credentials,
                           java.lang.String container,
                           java.lang.String object)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • method

        public SWIFT_PING.ConnBuilder method​(java.lang.String method)
                                      throws java.net.ProtocolException
        Throws:
        java.net.ProtocolException
      • getConnection

        public java.net.HttpURLConnection getConnection()