Package b4j.util

Class HttpSessionParams

java.lang.Object
b4j.util.HttpSessionParams
All Implemented Interfaces:
IConfigurable

public class HttpSessionParams
extends java.lang.Object
implements IConfigurable
Helps in configuring and retrieving HTTP session config information.
Author:
ralph
  • Constructor Details

  • Method Details

    • configure

      public void configure​(org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
      Specified by:
      configure in interface IConfigurable
      Throws:
      org.apache.commons.configuration.ConfigurationException
    • getAuthorizationCallback

      public AuthorizationCallback getAuthorizationCallback()
      Returns the authorizationCallback.
      Returns:
      the authorizationCallback
    • setAuthorizationCallback

      public void setAuthorizationCallback​(AuthorizationCallback authorizationCallback)
      Sets the authorizationCallback.
      Parameters:
      authorizationCallback - the authorizationCallback to set
    • hasAuthorization

      public boolean hasAuthorization()
      Returns true when the session authentication was defined.
      Returns:
      true when a session authentication was defined
    • getLogin

      public java.lang.String getLogin()
      Returns the login name as told by the callback handler.
      Returns:
      login name
    • getPassword

      public java.lang.String getPassword()
      Returns the password as told by the callback handler.
      Returns:
      the password
    • hasProxy

      public boolean hasProxy()
      Returns true when the proxy was defined.
      Returns:
      true when a proxy was defined
    • getProxyHost

      public java.lang.String getProxyHost()
      Returns the proxy hostname of null if no proxy was defined.
      Returns:
      the proxy host
    • getProxyPort

      public int getProxyPort()
      Returns the proxy port of -1 if no proxy was defined.
      Returns:
      the proxy port
    • hasProxyAuthentication

      public boolean hasProxyAuthentication()
      Returns true when the proxy authentication was defined.
      Returns:
      true when a proxy authentication was defined
    • getProxyUser

      public java.lang.String getProxyUser()
      Returns the proxy user of null if no proxy was defined.
      Returns:
      the proxy user
    • getProxyPassword

      public java.lang.String getProxyPassword()
      Returns the proxy password of null if no proxy was defined.
      Returns:
      the proxy password
    • setProxyHost

      public void setProxyHost​(java.lang.String proxyHost)
      Sets the proxyHost.
      Parameters:
      proxyHost - the proxyHost to set
    • setProxyPort

      public void setProxyPort​(int proxyPort)
      Sets the proxyPort.
      Parameters:
      proxyPort - the proxyPort to set
    • getProxyAuthorizationCallback

      public AuthorizationCallback getProxyAuthorizationCallback()
      Returns the proxyAuthorizationCallback.
      Returns:
      the proxyAuthorizationCallback
    • setProxyAuthorizationCallback

      public void setProxyAuthorizationCallback​(AuthorizationCallback proxyAuthorizationCallback)
      Sets the proxyAuthorizationCallback.
      Parameters:
      proxyAuthorizationCallback - the proxyAuthorizationCallback to set
    • isBasicAuthentication

      public boolean isBasicAuthentication()
      Returns the basicAuthentication.
      Returns:
      the basicAuthentication
    • setBasicAuthentication

      public void setBasicAuthentication​(boolean basicAuthentication)
      Sets the basicAuthentication.
      Parameters:
      basicAuthentication - the basicAuthentication to set
    • getProxy

      public java.net.Proxy getProxy()
      Returns the proxy object or null if no proxy is present.
      Returns:
      the proxy object