Class PropertiesConfigurationManager

    • Field Summary

      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String dump()  
      void dump​(java.lang.Appendable out, java.lang.String indent)
      Dump this object (and children) into an Appendable using the provided indent after any new lines.
      java.lang.String getFile()  
      java.util.Map<java.lang.String,​java.lang.String> getProperties()  
      void put​(java.lang.String name, java.lang.String value)  
      void setFile​(java.lang.String resource)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
    • Constructor Detail

      • PropertiesConfigurationManager

        public PropertiesConfigurationManager​(java.lang.String properties)
      • PropertiesConfigurationManager

        public PropertiesConfigurationManager()
    • Method Detail

      • setFile

        @ManagedAttribute("A file or URL of properties")
        public void setFile​(java.lang.String resource)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        public java.lang.String getFile()
      • put

        @ManagedOperation("Set a property")
        public void put​(@Name("name")
                        java.lang.String name,
                        @Name("value")
                        java.lang.String value)
      • toString

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

        public java.lang.String dump()
        Specified by:
        dump in interface Dumpable
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable