com.googlecode.fascinator.portal.pages
Class Dispatch

java.lang.Object
  extended by com.googlecode.fascinator.portal.pages.Dispatch

public class Dispatch
extends Object

Introduction

Dispatch is the only Tapestry Page object, and it is responsible for three tasks:

Wiki Link

https://fascinator.usq.edu.au/trac/wiki/Fascinator/Documents/Portal/ JavaCore#TapestryPages

Author:
Oliver Lucido

Field Summary
static String DEFAULT_RESOURCE
          The default resource if none is specified.
 
Constructor Summary
Dispatch()
           
 
Method Summary
 String getBestMatchResource(String resource)
          Parse the request URL to find the best matching resource from the portal.
 org.apache.tapestry5.StreamResponse onActivate(Object... params)
          Entry point for Tapestry to send page requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_RESOURCE

public static final String DEFAULT_RESOURCE
The default resource if none is specified. The home page, generally

See Also:
Constant Field Values
Constructor Detail

Dispatch

public Dispatch()
Method Detail

onActivate

public org.apache.tapestry5.StreamResponse onActivate(Object... params)
Entry point for Tapestry to send page requests.

Parameters:
params - : An array of request parameters from Tapestry

getBestMatchResource

public String getBestMatchResource(String resource)
Parse the request URL to find the best matching resource from the portal. This method will recursively call itself if required to break the URL down into constituent parts.

Parameters:
resource - : The resource we are looking for


Copyright © 2009-2011. All Rights Reserved.