org.apache.beehive.netui.pageflow.internal
Class URIContextFactory

Object
  extended by URIContextFactory

public final class URIContextFactory
extends Object

Factory for the URIContext with the data needed to write out a string form of a MutableURI.


Method Summary
static URIContext getInstance()
          Get a URIContext.
static URIContext getInstance(boolean forXML)
          Get a URIContext.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final URIContext getInstance()
Get a URIContext. The context has data used to write a MutableURI as a string. For example, it will indicate that the URI should be written using the "&" entity, rather than the character, '&'. This returns the default context, but also checks for any overriding setting in the NetUI config.

Returns:
the URIContext

getInstance

public static final URIContext getInstance(boolean forXML)
Get a URIContext. If it's for an XML document type, the context will indicate that the URI should be written using the "&" entity, rather than the character, '&'. If it's not for an XML doc type, then use the default context, but check for any overriding setting in the NetUI config.

Parameters:
forXML - flag indicating that the URI is for an XML doc type
Returns:
the URIContext