Class Proxy


  • public class Proxy
    extends java.lang.Object
    • Field Detail

      • path

        private final java.lang.String path
      • name

        private java.lang.String name
      • listen

        private java.lang.String listen
      • upstream

        private java.lang.String upstream
      • enabled

        private boolean enabled
    • Constructor Detail

      • Proxy

        public Proxy​(HttpClient httpClient,
                     java.lang.String path,
                     com.google.gson.JsonObject json)
    • Method Detail

      • setFromJson

        private void setFromJson​(com.google.gson.JsonObject json)
      • getName

        public java.lang.String getName()
      • getListen

        public java.lang.String getListen()
      • getUpstream

        public java.lang.String getUpstream()
      • isEnabled

        public boolean isEnabled()
      • setListen

        public void setListen​(java.lang.String listen)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • setUpstream

        public void setUpstream​(java.lang.String upstream)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • enable

        public void enable()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • disable

        public void disable()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • delete

        public void delete()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • reset

        void reset()
            throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object