org.exoplatform.web
Class WebRequestHandler

java.lang.Object
  extended by org.exoplatform.web.WebRequestHandler
Direct Known Subclasses:
CommandHandler

public abstract class WebRequestHandler
extends java.lang.Object

Created by The eXo Platform SAS Mar 21, 2007 Abstract calss that one must implement if it want to provide a dedicated handler for a custom servlet path In case of portal the path is /portal but you could return your own from the getPath() method and hence the WebAppController would use your own handler The execute method is to be overideen and the buisness logic should be handled here


Constructor Summary
WebRequestHandler()
           
 
Method Summary
abstract  void execute(WebAppController app, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
           
abstract  java.lang.String[] getPath()
           
 void onDestroy(WebAppController controler)
           
 void onInit(WebAppController controller)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebRequestHandler

public WebRequestHandler()
Method Detail

onInit

public void onInit(WebAppController controller)
            throws java.lang.Exception
Throws:
java.lang.Exception

getPath

public abstract java.lang.String[] getPath()

execute

public abstract void execute(WebAppController app,
                             javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse res)
                      throws java.lang.Exception
Throws:
java.lang.Exception

onDestroy

public void onDestroy(WebAppController controler)
               throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.