org.apache.beehive.netui.tags.rendering
Class TagRenderingBase.Factory
Object
TagRenderingBase.Factory
- Enclosing class:
- TagRenderingBase
public static class TagRenderingBase.Factory
- extends Object
This is the factory for obtaining a Tag Rendering object. The factory supports to types
of renderings HTML 4.01 and XHTML. The factory is responsible for creating the rendering objects and
passing them out. The target encoding may be specified on a page by page basis within a WebApp. The
getRendering
method will return a TagRenderingBase
object. This object is always
a stateless object. The state needed to render the tag will be passed into the tag.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagRenderingBase.Factory
public TagRenderingBase.Factory()
getRendering
public static TagRenderingBase getRendering(Object token,
ServletRequest req)
- Factory method for getting a TagRenderingBase for a tag. The default rendering is HTML 4.01.
- Parameters:
token
- The type of TagRenderingBase to retrieve.req
- The ServletRequest
used to see what type of rendering is being done.
- Returns:
- A
TagRenderingBase
isXHTML
public static boolean isXHTML(ServletRequest req)
- Return true if the current document is XHTML
- Parameters:
req
-
- Returns:
getConstantRendering
public static ConstantRendering getConstantRendering(ServletRequest req)
- Parameters:
req
-
- Returns:
- ConstantRendering