Tricia Help
Last edited Oct 28, 2011
Tags: no tags assigned  

Class Forwarder

in package de.infoasset.platform.handler

Declaration
public class Forwarder
extends Object
Hierarchy
java.lang.Object
  extendsde.infoasset.platform.handler.Forwarder
A forwarder is used to specify URLs using target objects (e.g., Handler classes or Assets) directly instead of using strings. This increases the consistency of the overall system.

Use one of the following methods to specify the target URL:

Advice: use the untyped method go(String) only if no other forwarding mechanisms is available.

Additional properties can be specified with the methods useHttps(), noRedirect(), and setAnchor(String).

With the static method getFullUrl() it is possible to get the URL of a Forwarder.WithForwarder back as a string.

Inner Class Summary

abstract static class Forwarder.WithForwarder

Constructor Summary

Forwarder()

Method Summary

String
getAnchor()
String
getFullUrl()
static String
getFullUrl(Class clazz)
static String
getFullUrl(Forwarder.WithForwarder wf)
String
getFullUrlWithoutAnchor()
static String
getHandlerUrl(Class clazz)
static String
getHandlerUrl(Handler h)
static String
getLocatorFromClass(Class clazz)
List
getParameterNamesToRetain()
static Response
getRedirect(Forwarder f)
void
go(Class handlerClass, NameValue[] parameters)
void
go(Entity asset, NameValue[] parameters)
void
go(HandlerPattern pattern, NameValue[] requestParameters, String[] patternParameters)
void
go(HandlerPattern pattern, String[] patternParameters)
void
go(String absolutePath)
void
goWithId(Class handlerClass, Asset asset, NameValue[] parameters)
void
goWithUid(Class handlerClass, Asset asset)
boolean
hasTarget()
void
noRedirect()
void
retainParameters(String[] names)
void
setAnchor(String anchor)
void
setParametersOnRequest()
String
toString()
void
useHttps()

Constructor Detail

Forwarder

public Forwarder()

Method Detail

go

public void go(Entity asset,
               NameValue[] parameters)

go

public void go(Class handlerClass,
               NameValue[] parameters)

goWithId

public void goWithId(Class handlerClass,
                     Asset asset,
                     NameValue[] parameters)

goWithUid

public void goWithUid(Class handlerClass,
                      Asset asset)

go

public void go(HandlerPattern pattern,
               String[] patternParameters)

go

public void go(HandlerPattern pattern,
               NameValue[] requestParameters,
               String[] patternParameters)

go

public void go(String absolutePath)

setAnchor

public void setAnchor(String anchor)

getAnchor

public String getAnchor()

useHttps

public void useHttps()

noRedirect

public void noRedirect()

getLocatorFromClass

public static String getLocatorFromClass(Class clazz)

getRedirect

public static Response getRedirect(Forwarder f)

getFullUrl

public String getFullUrl()

getFullUrlWithoutAnchor

public String getFullUrlWithoutAnchor()

getFullUrl

public static String getFullUrl(Class clazz)

getFullUrl

public static String getFullUrl(Forwarder.WithForwarder wf)

getHandlerUrl

public static String getHandlerUrl(Handler h)

getHandlerUrl

public static String getHandlerUrl(Class clazz)

hasTarget

public boolean hasTarget()

retainParameters

public void retainParameters(String[] names)

getParameterNamesToRetain

public List getParameterNamesToRetain()

toString

public String toString()

setParametersOnRequest

public void setParametersOnRequest()

0 Comments