Class HostParams

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, HttpParams

    public class HostParams
    extends DefaultHttpParams
    This class represents a collection of HTTP protocol parameters applicable to instances of HostConfiguration. Protocol parameters may be linked together to form a hierarchy. If a particular parameter value has not been explicitly defined in the collection itself, its value will be drawn from the parent collection of parameters.
    Since:
    3.0
    See Also:
    Serialized Form
    • Field Detail

      • DEFAULT_HEADERS

        public static final java.lang.String DEFAULT_HEADERS
        Defines the request headers to be sent per default with each request.

        This parameter expects a value of type Collection. The collection is expected to contain Headers.

        See Also:
        Constant Field Values
    • Constructor Detail

      • HostParams

        public HostParams​(HttpParams defaults)
        Creates a new collection of parameters with the given parent. The collection will defer to its parent for a default value if a particular parameter is not explicitly set in the collection itself.
        Parameters:
        defaults - the parent collection to defer to, if a parameter is not explictly set in the collection itself.
        See Also:
        DefaultHttpParams.getDefaultParams()
    • Method Detail

      • setVirtualHost

        public void setVirtualHost​(java.lang.String hostname)
        Sets the virtual host name.
        Parameters:
        hostname - The host name
      • getVirtualHost

        public java.lang.String getVirtualHost()
        Returns the virtual host name.
        Returns:
        The virtual host name