|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
com.sap.ip.me.api.runtime.jsp.AbstractMEHttpServlet
Base class for all mobile engine web application servlets. It supports localization (binds current Locale and resource bundles to current session), extracts events from request.
Ger.: Abstrakte Mobile Engine HttpServlet Klasse
Constructor Summary | |
AbstractMEHttpServlet()
|
Method Summary | |
void |
activateApplication()
Description of the Method |
void |
deactivateApplication()
Description of the Method |
void |
destroy()
Calls the hook method doDestroy() and then cleans up session context. |
void |
destroyApplication()
Description of the Method |
void |
doDestroy()
Hook method for servlet destruction. |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Template method called by servlet framework to handle a http get request. |
abstract java.lang.String |
doHandleEvent(java.lang.String eventName,
HttpServletRequest request,
HttpServletResponse response)
Abstract hook method called by doGet and doPost. |
void |
doInitialize()
Hook method for servlet initialization. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Template method called by servlet framework to handle a http post request. |
static java.lang.String |
encodeForHtml(char c)
Encode characters to be shown in a web browser. |
static java.lang.String |
encodeForHtml(java.lang.String ascii)
Encode a whole string into characters to be shown in a web browser. |
abstract java.lang.String |
getApplicationName()
Gets the applicationName attribute of the AbstractMEHttpServlet object |
protected java.util.Locale |
getLocale()
Creates a Locale object for the user language that was set in sync properties. |
static java.lang.String |
getMIHome()
Returns url of the local Mobile Infrastructure home page. |
protected MEResourceBundle |
getResourceBundle()
Returns the resources bundle. |
protected java.lang.String |
getUser()
Deprecated. Use UserManager.getInstance().getCurrentUser()
instead. |
void |
init()
Template method called by servlet framwork to initialize local servlet data. |
void |
initApplication()
Description of the Method |
void |
service(HttpServletRequest request,
HttpServletResponse response)
Activates the Application and calls super.service(...) |
protected void |
setResourceBundle(java.lang.String resourceBundleName)
Saves a resource bundle name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractMEHttpServlet()
Method Detail |
public final void service(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
super.service(...)
. Also
note that only requests from localhost (127.0.0.1) will be processed. If a
machine other than localhost tries to get access by sending a request an
HTTP 403 status code will be returned.
request
- Description of the Parameterresponse
- Description of the Parameter
java.io.IOException
ServletException
public static java.lang.String getMIHome()
public static java.lang.String encodeForHtml(char c)
c
- the character to be encoded
public static java.lang.String encodeForHtml(java.lang.String ascii)
ascii
- the character to be encoded
public void init() throws ServletException
ServletException
public void destroy()
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exception
java.io.IOException
- Description of the Exceptionpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exception
java.io.IOException
- Description of the Exceptionpublic void doInitialize() throws ServletException
ServletException
public void doDestroy()
public abstract java.lang.String doHandleEvent(java.lang.String eventName, HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
eventName
- Description of the Parameterrequest
- Description of the Parameterresponse
- Description of the Parameter
ServletException
- Description of the Exception
java.io.IOException
- Description of the Exceptionpublic void initApplication()
initApplication
in interface Application
public void activateApplication()
activateApplication
in interface Application
public void deactivateApplication()
deactivateApplication
in interface Application
public void destroyApplication()
destroyApplication
in interface Application
public abstract java.lang.String getApplicationName()
getApplicationName
in interface Application
protected java.lang.String getUser()
UserManager.getInstance().getCurrentUser()
instead.
protected void setResourceBundle(java.lang.String resourceBundleName)
resourceBundleName
- The full qualified resource bundle name.protected MEResourceBundle getResourceBundle()
protected java.util.Locale getLocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |