Interface JKContext

All Known Implementing Classes:
JKAbstractContext, JKDesktopContext, JKJsfContext, JKMobileContext, JKServletContext, JKWebContext

public interface JKContext
The Interface JKContext.
  • Method Details

    • getApplicationMap

      HashMap<String,Object> getApplicationMap()
      Gets the application map.
      Returns:
      the application map
    • getAttribute

      Object getAttribute(String attribute)
      Gets the attribute.
      Parameters:
      attribute - the attribute
      Returns:
      the attribute
    • getRemoteMachineName

      String getRemoteMachineName()
      Gets the machine name.
      Returns:
      the machine name
    • getRemoteIP

      String getRemoteIP()
      Gets the remote IP.
      Returns:
      the remote IP
    • getRemotPort

      int getRemotPort()
      Gets the remot port.
      Returns:
      the remot port
    • getRequestMap

      HashMap<String,Object> getRequestMap()
      Gets the request map.
      Returns:
      the request map
    • getSessionID

      String getSessionID()
      Gets the session ID.
      Returns:
      the session ID
    • getSessionMap

      HashMap<String,Object> getSessionMap()
      Gets the session map.
      Returns:
      the session map
    • getUser

      Object getUser()
      Gets the user.
      Returns:
      the user
    • setAttribute

      void setAttribute(String key, Object value)
      Sets the attribute.
      Parameters:
      key - the key
      value - the value
    • getResourceLoader

      JKResourceLoader getResourceLoader()
      Gets the resource loader.
      Returns:
      the resource loader
    • getConfigPath

      String getConfigPath()
      Gets the config path.
      Returns:
      the config path
    • getCurrentToken

      String getCurrentToken()
      Gets the current token.
      Returns:
      the current token
    • setRemoteAppName

      void setRemoteAppName(String appName)
      Sets the remote app name.
      Parameters:
      appName - the new remote app name
    • getRemoteAppName

      String getRemoteAppName()
      Gets the remote app name.
      Returns:
      the remote app name
    • getAppName

      String getAppName()
      Gets the app name.
      Returns:
      the app name
    • getProgram

      String getProgram()
      Gets the program.
      Returns:
      the program
    • getUserName

      String getUserName()
      Gets the user name.
      Returns:
      the user name
    • getClientId

      String getClientId()
      Gets the client id.
      Returns:
      the client id
    • getModule

      String getModule()
      Gets the module.
      Returns:
      the module
    • getAction

      String getAction()
      Gets the action.
      Returns:
      the action
    • getPort

      int getPort()
      Gets the port.
      Returns:
      the port
    • setPort

      void setPort(int serverPort)
      Sets the port.
      Parameters:
      serverPort - the new port
    • getHost

      String getHost()
      Gets the host.
      Returns:
      the host
    • setHost

      void setHost(String name)
      Sets the host.
      Parameters:
      name - the new host
    • setHeadersMap

      void setHeadersMap(Map<String,String> headersMap)
      Sets the headers map.
      Parameters:
      headersMap - the headers map
    • getHeadersMap

      Map<String,String> getHeadersMap()
      Gets the headers map.
      Returns:
      the headers map
    • getRealIP

      String getRealIP()
      Gets the real IP.
      Returns:
      the real IP
    • getForwardHost

      String getForwardHost()
      Gets the forward host.
      Returns:
      the forward host
    • getForwardPort

      String getForwardPort()
      Gets the forward port.
      Returns:
      the forward port
    • getRole

      String getRole()
      Gets the role.
      Returns:
      the role
    • toSimpleMap

      Map<String,Object> toSimpleMap()
      To simple map.
      Returns:
      the map
    • getRemoteUser

      String getRemoteUser()
      Gets the remote user.
      Returns:
      the remote user
    • getRemoteRole

      String getRemoteRole()
      Gets the remote role.
      Returns:
      the remote role