Interface HttpApplicationState

All Known Implementing Classes:
HttpApplicationStateManagedObjectSource

public interface HttpApplicationState
State for the web application instance.
Author:
Daniel Sagenschneider
  • Method Details

    • getContextPath

      String getContextPath()
      Obtains the context path for the application.
      Returns:
      Context path for the application.
    • createApplicationClientUrl

      String createApplicationClientUrl(boolean isSecure, String path, ServerHttpConnection connection)

      Creates the client URL for this application.

      This includes protocol, domain and port.

      Parameters:
      isSecure - Indicates if the URL is secure.
      path - Path including query string and fragment for the URL.
      connection - ServerHttpConnection.
      Returns:
      Client URL for the application.
    • createApplicationClientPath

      String createApplicationClientPath(String path)

      Creates the client path for this application.

      This is the public path on the server, and does NOT protocol, domain nor port.

      Parameters:
      path - Path including query string and fragment for the path.
      Returns:
      Client path for the application.
    • extractApplicationPath

      String extractApplicationPath(ServerHttpConnection connection) throws HttpException
      Extracts the application path from the HttpRequest.
      Parameters:
      connection - ServerHttpConnection.
      Returns:
      Application path.
      Throws:
      HttpException - If invalid path for this application.
    • getAttribute

      Object getAttribute(String name)
      Obtains the Object that is bound to the name.
      Parameters:
      name - Name.
      Returns:
      Object bound to the name or null if no Object bound by the name.
    • getAttributeNames

      Iterator<String> getAttributeNames()
      Obtains an Iterator to the names of the bound Object instances.
      Returns:
      Iterator to the names of the bound Object instances.
    • setAttribute

      void setAttribute(String name, Object object)
      Binds the Object to the name.
      Parameters:
      name - Name.
      object - Object.
    • removeAttribute

      void removeAttribute(String name)
      Removes the bound Object by the name.
      Parameters:
      name - Name of bound Object to remove.