org.nst.pasientlink.authenticator.admin.command
Class Command
java.lang.Object
|
+--org.nst.pasientlink.authenticator.admin.command.Command
- Direct Known Subclasses:
- AuthenticateSessionCommand, LogoutCommand, MainMenuCommand, RequestAuthenticationCommand, UserCreateCommand, UserDeleteCommand, UserEditCommand
- abstract class Command
- extends java.lang.Object
Constructor Summary |
Command(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Constructor |
Method Summary |
abstract java.lang.String |
exec(org.apache.velocity.context.Context context)
Implemented by classes that extends this class |
static AuthenticatorStorage |
getAuthenticatorStorage()
getAuthenticatorStorage returns the authenticatorstorage from the Controller |
static Utility |
getUtility()
getUtility returns the utility instance from the Controller |
private void |
setCommonResponseHeaders()
setCommonReponseHeaders sets response headers
common to all response generated by commands (and subclasses) |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
request
protected javax.servlet.http.HttpServletRequest request
response
protected javax.servlet.http.HttpServletResponse response
mySession
protected javax.servlet.http.HttpSession mySession
DATE_FORMATTER
public static final java.lang.String DATE_FORMATTER
RETURN_VALUE
public static final java.lang.String RETURN_VALUE
COMMAND
public static final java.lang.String COMMAND
COMMAND_PARAMETER
public static final java.lang.String COMMAND_PARAMETER
Command
public Command(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- Constructor
exec
public abstract java.lang.String exec(org.apache.velocity.context.Context context)
- Implemented by classes that extends this class
- Parameters:
the
- context- Returns:
- the name of the template to execute
setCommonResponseHeaders
private void setCommonResponseHeaders()
- setCommonReponseHeaders sets response headers
common to all response generated by commands (and subclasses)
getAuthenticatorStorage
public static AuthenticatorStorage getAuthenticatorStorage()
- getAuthenticatorStorage returns the authenticatorstorage from the Controller
- Returns:
- AuthenticatorStorage
getUtility
public static Utility getUtility()
- getUtility returns the utility instance from the Controller
Copyright © 2002 Norwegian Centre for Telemedicine. All Rights Reserved.