eu.clarin.cmdi.mdservice.action
Class MDRepoProxyAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by eu.clarin.cmdi.mdservice.action.GenericProxyAction
          extended by eu.clarin.cmdi.mdservice.action.MDRepoProxyAction
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 MDRepoProxyAction
extends GenericProxyAction

Main Struts 2 controller responds to requests (collections, model, recordset) by dispatching the requests to appropriate internal methods and filling the inputStream with the result

Author:
vronk
See Also:
Serialized Form

Field Summary
private  java.lang.String proxy_key
           
private static long serialVersionUID
           
private static java.util.HashMap<java.lang.String,java.lang.String> urls
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
MDRepoProxyAction()
           
 
Method Summary
 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.net.URL getTargetRequest()
          uses base_url + url_pattern (parametrized by actionkey) to form a url
 
Methods inherited from class eu.clarin.cmdi.mdservice.action.GenericProxyAction
execute, getActionkey, getBaseURL, getCollection, getFormat, getFullFormat, getMaxdepth, getQ, getRequestKey, 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

urls

private static final java.util.HashMap<java.lang.String,java.lang.String> urls
Constructor Detail

MDRepoProxyAction

public MDRepoProxyAction()
Method Detail

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:

getTargetRequest

public java.net.URL getTargetRequest()
                              throws java.lang.Exception
uses base_url + url_pattern (parametrized by actionkey) to form a url

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