Package com.jk.core.context
Interface JKContext
- All Known Implementing Classes:
JKAbstractContext
,JKDesktopContext
,JKJsfContext
,JKMobileContext
,JKServletContext
,JKWebContext
public interface JKContext
The Interface JKContext.
-
Method Summary
Modifier and TypeMethodDescriptionGets the action.Gets the application map.Gets the app name.getAttribute
(String attribute) Gets the attribute.Gets the client id.Gets the config path.Gets the current token.Gets the forward host.Gets the forward port.Gets the headers map.getHost()
Gets the host.Gets the module.int
getPort()
Gets the port.Gets the program.Gets the real IP.Gets the remote app name.Gets the remote IP.Gets the machine name.Gets the remote role.Gets the remote user.int
Gets the remot port.Gets the request map.Gets the resource loader.getRole()
Gets the role.Gets the session ID.Gets the session map.getUser()
Gets the user.Gets the user name.void
setAttribute
(String key, Object value) Sets the attribute.void
setHeadersMap
(Map<String, String> headersMap) Sets the headers map.void
Sets the host.void
setPort
(int serverPort) Sets the port.void
setRemoteAppName
(String appName) Sets the remote app name.To simple map.
-
Method Details
-
getApplicationMap
Gets the application map.- Returns:
- the application map
-
getAttribute
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
Gets the request map.- Returns:
- the request map
-
getSessionID
String getSessionID()Gets the session ID.- Returns:
- the session ID
-
getSessionMap
Gets the session map.- Returns:
- the session map
-
getUser
Object getUser()Gets the user.- Returns:
- the user
-
setAttribute
Sets the attribute.- Parameters:
key
- the keyvalue
- 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
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
Sets the host.- Parameters:
name
- the new host
-
setHeadersMap
Sets the headers map.- Parameters:
headersMap
- the headers map
-
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
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
-