eu.clarin.cmdi.mdservice.action
Class CompRegistryProxyAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by eu.clarin.cmdi.mdservice.action.GenericProxyAction
          extended by eu.clarin.cmdi.mdservice.action.CompRegistryProxyAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, java.io.Serializable

public class CompRegistryProxyAction
extends GenericProxyAction

Acts as a Struts 2 controller serves the requests regarding Components it passes them further (Proxy) to the ComponentRegistry. Nested Components are resolved during xsl-transformation.

Author:
vronk
See Also:
Serialized Form

Field Summary
private  java.lang.String compid
           
private  java.lang.String proxy_key
           
private static long serialVersionUID
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
CompRegistryProxyAction()
           
 
Method Summary
 java.lang.String getCompid()
           
 java.lang.String getFullFormat()
           
 java.lang.String getProxyKey()
          primitive identification of the target-proxy base for finding the right base_url in the props subclass has to override with its specific proxykey
 java.lang.String getRequestKey()
           
 java.net.URL getTargetRequest()
          uses base_url and (optionally) compid to form a url no compid => list all components/profiles
 void setCompid(java.lang.String compid)
           
 
Methods inherited from class eu.clarin.cmdi.mdservice.action.GenericProxyAction
execute, getActionkey, getBaseURL, getCollection, getFormat, getMaxdepth, getQ, getResultStream, getUserMsg, prepare, setActionkey, setCollection, setFormat, setMaxdepth, setQ, setUserMsg
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

proxy_key

private java.lang.String proxy_key

compid

private java.lang.String compid
Constructor Detail

CompRegistryProxyAction

public CompRegistryProxyAction()
Method Detail

getCompid

public java.lang.String getCompid()

setCompid

public void setCompid(java.lang.String compid)

getFullFormat

public java.lang.String getFullFormat()
Overrides:
getFullFormat in class GenericProxyAction

getProxyKey

public java.lang.String getProxyKey()
Description copied from class: GenericProxyAction
primitive identification of the target-proxy base for finding the right base_url in the props subclass has to override with its specific proxykey

Overrides:
getProxyKey in class GenericProxyAction
Returns:

getRequestKey

public java.lang.String getRequestKey()
Overrides:
getRequestKey in class GenericProxyAction

getTargetRequest

public java.net.URL getTargetRequest()
                              throws java.lang.Exception
uses base_url and (optionally) compid to form a url no compid => list all components/profiles

Overrides:
getTargetRequest in class GenericProxyAction
Returns:
the URL to component-registry
Throws:
java.lang.Exception