org.apache.beehive.netui.core.urltemplates
Class URLTemplateDescriptor

Object
  extended by URLTemplateDescriptor

public class URLTemplateDescriptor
extends Object

Maintains optional deployment information about templates and the URL template config file.


Field Summary
static String ACTION_TEMPLATE
           
static String DEFAULT_TEMPLATE
           
static String DOMAIN_TOKEN
           
static String PATH_TOKEN
           
static String PORT_TOKEN
           
static String QUERY_STRING_TOKEN
           
static String RENDER_TEMPLATE
           
static String RESOURCE_TEMPLATE
           
static String SCHEME_TOKEN
           
static String SECURE_ACTION_TEMPLATE
           
static String SECURE_DEFAULT_TEMPLATE
           
static String SECURE_RENDER_TEMPLATE
           
static String SECURE_RESOURCE_TEMPLATE
           
 
Constructor Summary
protected URLTemplateDescriptor()
          Constructs an instance.
 
Method Summary
static URLTemplateDescriptor getInstance()
          Returns an instance of URLTemplateDescriptor.
 URLTemplate getURLTemplate(String name)
          Returns URL template given the name of the template.
 String getURLTemplateRef(String refGroupName, String key)
          Returns URL template name of the given type (by key).
 void load(ServletContext servletContext)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TEMPLATE

public static final String DEFAULT_TEMPLATE
See Also:
Constant Field Values

SECURE_DEFAULT_TEMPLATE

public static final String SECURE_DEFAULT_TEMPLATE
See Also:
Constant Field Values

ACTION_TEMPLATE

public static final String ACTION_TEMPLATE
See Also:
Constant Field Values

SECURE_ACTION_TEMPLATE

public static final String SECURE_ACTION_TEMPLATE
See Also:
Constant Field Values

RESOURCE_TEMPLATE

public static final String RESOURCE_TEMPLATE
See Also:
Constant Field Values

SECURE_RESOURCE_TEMPLATE

public static final String SECURE_RESOURCE_TEMPLATE
See Also:
Constant Field Values

RENDER_TEMPLATE

public static final String RENDER_TEMPLATE
See Also:
Constant Field Values

SECURE_RENDER_TEMPLATE

public static final String SECURE_RENDER_TEMPLATE
See Also:
Constant Field Values

SCHEME_TOKEN

public static final String SCHEME_TOKEN
See Also:
Constant Field Values

DOMAIN_TOKEN

public static final String DOMAIN_TOKEN
See Also:
Constant Field Values

PORT_TOKEN

public static final String PORT_TOKEN
See Also:
Constant Field Values

PATH_TOKEN

public static final String PATH_TOKEN
See Also:
Constant Field Values

QUERY_STRING_TOKEN

public static final String QUERY_STRING_TOKEN
See Also:
Constant Field Values
Constructor Detail

URLTemplateDescriptor

protected URLTemplateDescriptor()
Constructs an instance.

Method Detail

getURLTemplate

public URLTemplate getURLTemplate(String name)
Returns URL template given the name of the template.

Parameters:
name - name of the template
Returns:
template

getURLTemplateRef

public String getURLTemplateRef(String refGroupName,
                                String key)
Returns URL template name of the given type (by key).

Parameters:
refGroupName - name of a group of templates from the config file.
key - type of the template
Returns:
template name

getInstance

public static URLTemplateDescriptor getInstance()
Returns an instance of URLTemplateDescriptor.

Returns:
portal app descriptor

load

public void load(ServletContext servletContext)