Package run.undead.context
Class HttpHandler
java.lang.Object
run.undead.context.HttpHandler
HttpHandler handles the HTTP request lifecycle for a
View and either
returns the rendered HTML or redirects the request.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringhandle(View view, MainLayout mainLayout, RequestAdaptor adaptor, PageTitle pageTitle, WrapperTemplate wrapperTemplate) Handle the HTTP request lifecycle for aViewand either return the rendered HTML or redirect the request.
-
Constructor Details
-
HttpHandler
public HttpHandler()
-
-
Method Details
-
handle
public static String handle(View view, MainLayout mainLayout, RequestAdaptor adaptor, PageTitle pageTitle, WrapperTemplate wrapperTemplate) Handle the HTTP request lifecycle for aViewand either return the rendered HTML or redirect the request.- Parameters:
view- theViewto rendermainLayout- theMainLayoutto render theViewinsideadaptor- theRequestAdaptorto pull data from the HTTP requestpageTitle- thePageTitleto pass to theMainLayoutwrapperTemplate- the optionalWrapperTemplateto render theViewinside- Returns:
- the rendered HTML or null if the request was redirected
-