Interface ServerVariables

    • Method Detail

      • addServerVariable

        ServerVariables addServerVariable​(java.lang.String name,
                                          ServerVariable serverVariable)
        Deprecated.
        This method adds a key-value item to a ServerVariables instance from the name-item parameter pair and returns the modified instance.
        Parameters:
        name - the name of ServerVariable instance
        serverVariable - the ServerVariable instance. null values will be rejected (implementation will throw an exception) or ignored.
        Returns:
        ServerVariables instance with the added name-item pair.
      • removeServerVariable

        void removeServerVariable​(java.lang.String name)
        Deprecated.
        Removes the given server variables.
        Parameters:
        name - the name of ServerVariable instance
      • getServerVariables

        java.util.Map<java.lang.String,​ServerVariable> getServerVariables()
        Deprecated.
        Returns a copy map (potentially immutable) of the server variables.
        Returns:
        all items
      • setServerVariables

        void setServerVariables​(java.util.Map<java.lang.String,​ServerVariable> items)
        Deprecated.
        Set the server variables map to this ServerVariables object.
        Parameters:
        items - a map containing key-value item.
      • hasServerVariable

        default boolean hasServerVariable​(java.lang.String name)
        Deprecated.
        Check whether a server variable is present in the map. This is a convenience method for getServerVariables().containsKey(name)
        Parameters:
        name - the name of ServerVariable instance
        Returns:
        a boolean to indicate if the server variable is present or not.
      • getServerVariable

        default ServerVariable getServerVariable​(java.lang.String name)
        Deprecated.
        Returns a server variable for a given name. This is a convenience method for getServerVariables().get(name)
        Parameters:
        name - the name of ServerVariable instance
        Returns:
        the corresponding server variable or null.
      • containsKey

        @Deprecated
        boolean containsKey​(java.lang.Object key)
        Deprecated.
        since 1.1
        In the next version, ServerVariables will no longer extends Map, this method will no longer be present. Use hasServerVariable(String) instead.
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​ServerVariable>
      • putAll

        @Deprecated
        void putAll​(java.util.Map<? extends java.lang.String,​? extends ServerVariable> m)
        Deprecated.
        since 1.1
        In the next version, ServerVariables will no longer extends Map, this method will no longer be present. Use setServerVariables(Map) instead.
        Specified by:
        putAll in interface java.util.Map<java.lang.String,​ServerVariable>