deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.security.owsproxy
Class StringReplacementTrigger

java.lang.Object
  extended by org.deegree.security.owsproxy.StringReplacementTrigger
All Implemented Interfaces:
Trigger

public class StringReplacementTrigger
extends java.lang.Object
implements Trigger

Trigger for replacing string within requests and responses to OGC Web Service packed behind a owsProxy. At the moment replacements are just supported for responses to GetCapabilities requests.

Since:
2.0
Version:
$Revision: 18195 $, 1.0. $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $

Constructor Summary
StringReplacementTrigger(java.lang.String replacements, java.lang.String consideredRequests)
           
 
Method Summary
 java.lang.Object[] doTrigger(java.lang.Object caller, java.lang.Object... values)
          performs the action(s) defined by a concrete trigger.
 java.lang.String getName()
          returns the name of the trigger
 void setName(java.lang.String name)
          sets the name of the trigger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringReplacementTrigger

public StringReplacementTrigger(java.lang.String replacements,
                                java.lang.String consideredRequests)
Parameters:
replacements - list of replacement rules "{key1|value1}{key2|value2} ... {keyX|valueX}"
consideredRequests - comma seperated list of request names to be considerded; e.g. "WMS:GetFeatureInfo,WMS:GetCapabilities,WFS:GetFeature"
Method Detail

doTrigger

public java.lang.Object[] doTrigger(java.lang.Object caller,
                                    java.lang.Object... values)
Description copied from interface: Trigger
performs the action(s) defined by a concrete trigger. The returned value must have the same structure as the passed parameter. A trigger may changes the values of the passed parameter(s) but do not change their type or structure

Specified by:
doTrigger in interface Trigger
Parameters:
caller - instance of calling class
values - values passed from the calling method

getName

public java.lang.String getName()
returns the name of the trigger

Specified by:
getName in interface Trigger
Returns:
name of the trigger

setName

public void setName(java.lang.String name)
sets the name of the trigger

Specified by:
setName in interface Trigger
Parameters:
name - name of the trigger

deegree 2.5 (2011/06/29 09:44 build-8-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org