org.mentawai.core
Class ServiceController

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mentawai.core.Controller
              extended by org.mentawai.core.ServiceController
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServiceController
extends Controller

See Also:
Serialized Form

Field Summary
protected  String extension
           
 
Fields inherited from class org.mentawai.core.Controller
appContext, DEFAULT_CHARSET
 
Constructor Summary
ServiceController()
           
 
Method Summary
protected  String getActionName(javax.servlet.http.HttpServletRequest req)
          From the http request, get the action name.
protected  String getInnerActionName(javax.servlet.http.HttpServletRequest req)
          The action name may include an Inner Action.
protected  String getRequestURI(javax.servlet.http.HttpServletRequest req)
           
 void init(javax.servlet.ServletConfig conf)
          Initialize the Controller, creating and starting the ApplicationManager.
 
Methods inherited from class org.mentawai.core.Controller
destroy, getApplication, getBasePathForMaven, getConfig, getConsequenceProvider, getExtension, getMethodSeparatorChar, getURI, invokeAction, prepareAction, service, setAppManager, setConsequenceProvider
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected String extension
Constructor Detail

ServiceController

public ServiceController()
Method Detail

init

public void init(javax.servlet.ServletConfig conf)
          throws javax.servlet.ServletException
Description copied from class: Controller
Initialize the Controller, creating and starting the ApplicationManager.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class Controller
Parameters:
conf - the ServletConfig.
Throws:
javax.servlet.ServletException

getRequestURI

protected final String getRequestURI(javax.servlet.http.HttpServletRequest req)

getActionName

protected String getActionName(javax.servlet.http.HttpServletRequest req)
Description copied from class: Controller
From the http request, get the action name. You may override this if you want to extract the action name through some other way.

Overrides:
getActionName in class Controller
Parameters:
req - The http request
Returns:
The action name

getInnerActionName

protected String getInnerActionName(javax.servlet.http.HttpServletRequest req)
Description copied from class: Controller
The action name may include an Inner Action. For example: for bookmanager.add.mtw the action name is "bookmanager" and the inneraction name is "add". If you want to extract the inner action through some other way you can override this method in your own controller.

Overrides:
getInnerActionName in class Controller
Returns:
The inner action name or null if there is no inneraction.


Copyright © 2013. All Rights Reserved.