|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.view.ViewUtil
This class provides utility functions for determining the ViewCapabilities.
Note that currently only the HTML related logic is fully implemented. If you need support for specific versions of WML, CHTML, etc, you may have to add some code here to examine the appropriate headers and map it to the proper types. If you have expertise working with these other flavors of markup and would like to help flesh out support for these languages, email the list and we'll be glad to give you pointers...
Field Summary | |
protected static org.apache.log4j.Logger |
logger
|
Constructor Summary | |
ViewUtil()
|
Method Summary | |
static ClientType |
getClientType(javax.servlet.http.HttpServletRequest req)
Determine the client type by looking at the User-Agent header in the request |
static FormatType |
getFormatType(javax.servlet.http.HttpServletRequest req)
Determine the format type by looking at the Accept header in the request |
static ScriptingType |
getScriptingType(javax.servlet.http.HttpServletRequest req)
Determine the what type of scripting is supported by figuring out what kind of browser we're dealing with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
Constructor Detail |
public ViewUtil()
Method Detail |
public static FormatType getFormatType(javax.servlet.http.HttpServletRequest req)
req
- an HttpServletRequest object
public static ScriptingType getScriptingType(javax.servlet.http.HttpServletRequest req)
req
- an HttpServletRequest object
public static ClientType getClientType(javax.servlet.http.HttpServletRequest req)
req
- an HttpServletRequest object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |