|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.configuration.AbstractConfigBean
org.torweg.pulse.site.CaseDrivenRedirectConfig
public class CaseDrivenRedirectConfig
provides functionality to manage a number of redirects by case as defined in configuration-XML.
configuration-XML:
<cases><br/>
 <switch case="name of the case"><br/>
  <redirects><br/>
   <redirect name="name of the redirect"><br/>
    <command action="name of the action"
bundle="name of the bundle"><br/>
     <parameter name="name of the parameter"><br/>
      <value>the value</value><br/>
     </parameter><br/>
     ...<br/>
    </command><br/>
    ...<br/>
   </redirect><br/>
or<br/>
   <redirect uri="http://www...."><br/>
   ...<br/>
  </redirects><br/>
 </switch><br/>
 ...<br/>
</cases><br/>
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
LOGGER
the logger. |
| Constructor Summary | |
|---|---|
CaseDrivenRedirectConfig()
|
|
| Method Summary | |
|---|---|
CommandBuilder |
getRedirectCommandBuilder(java.lang.String c,
java.lang.String n)
returns the redirect CommandBuilder specified by name. |
java.lang.String |
getRedirectURI(java.lang.String c,
java.lang.String n)
returns the redirect URI specified by name. |
void |
init(org.jdom.Element conf)
configures the bean from the given JDOM element. |
| Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean |
|---|
buildClass, buildInstance, lastModified, setLastModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger LOGGER
| Constructor Detail |
|---|
public CaseDrivenRedirectConfig()
| Method Detail |
|---|
public final java.lang.String getRedirectURI(java.lang.String c,
java.lang.String n)
c - the name of the casen - the name of the redirect-URI used in the configuration-XML
public final CommandBuilder getRedirectCommandBuilder(java.lang.String c,
java.lang.String n)
CommandBuilder specified by name.
c - the name of the casen - the name of the redirect-URI used in the configuration-XML
CommandBuilderpublic void init(org.jdom.Element conf)
ConfigBean
conf - the configuration-XMLConfigBean.init(org.jdom.Element)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||