to.etc.domui.server
Class ApplicationRequestHandler

java.lang.Object
  extended by to.etc.domui.server.ApplicationRequestHandler
All Implemented Interfaces:
IFilterRequestHandler

public class ApplicationRequestHandler
extends java.lang.Object
implements IFilterRequestHandler

Mostly silly handler to handle direct DOM requests. Phaseless handler for testing direct/delta building only using a reloadable class.

Author:
Frits Jalvingh Created on May 22, 2008

Constructor Summary
ApplicationRequestHandler(DomApplication application)
           
 
Method Summary
static void generateAjaxRedirect(RequestContextImpl ctx, java.lang.String url)
          Generate an AJAX redirect command.
static void generateHttpRedirect(RequestContextImpl ctx, java.lang.String to, java.lang.String rsn)
          Sends a redirect as a 304 MOVED command.
 void handleRequest(RequestContextImpl ctx)
           
static void renderOptimalDelta(RequestContextImpl ctx, Page page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationRequestHandler

public ApplicationRequestHandler(DomApplication application)
Method Detail

handleRequest

public void handleRequest(RequestContextImpl ctx)
                   throws java.lang.Exception
Specified by:
handleRequest in interface IFilterRequestHandler
Throws:
java.lang.Exception

generateHttpRedirect

public static void generateHttpRedirect(RequestContextImpl ctx,
                                        java.lang.String to,
                                        java.lang.String rsn)
                                 throws java.lang.Exception
Sends a redirect as a 304 MOVED command. This should be done for all full-requests.

Parameters:
ctx -
to -
rsn -
Throws:
java.lang.Exception

generateAjaxRedirect

public static void generateAjaxRedirect(RequestContextImpl ctx,
                                        java.lang.String url)
                                 throws java.lang.Exception
Generate an AJAX redirect command. Should be used by all COMMAND actions.

Parameters:
ctx -
url -
Throws:
java.lang.Exception

renderOptimalDelta

public static void renderOptimalDelta(RequestContextImpl ctx,
                                      Page page)
                               throws java.lang.Exception
Throws:
java.lang.Exception