More information


de.spieleck.pcs.http
Class ServiceInfo

java.lang.Object
  |
  +--de.spieleck.pcs.http.ServiceInfo

public class ServiceInfo
extends java.lang.Object

This objects represents information about a Service provided by the ControllerServlet. If the ServiceInfo is set to dynamicView = true, then the Controller is allowed to use the stylesheet specified by the ActionResult instead of the default.


Constructor Summary
ServiceInfo()
          Creates a new instance of ServiceInfo
ServiceInfo(java.lang.String name, java.lang.String actionName, java.lang.String stylesheet)
          Creates a ServiceInfo with the given settings
ServiceInfo(java.lang.String name, java.lang.String actionName, java.lang.String stylesheet, boolean dynamicView)
          Creates a ServiceInfo with the given settings
 
Method Summary
 Action getAction()
          returns an instance of the Action connected to this Service
protected  java.lang.String getActionName()
          returns the class name of the Action connected to this Service
 java.lang.String getAuthChecker()
          Getter for property authChecker.
 java.lang.String getName()
          gets the name of this Service
 java.lang.String getStylesheet()
          Getter for property stylesheet.
 boolean isDynamicView()
          Getter for property dynamicView.
protected  void setActionName(java.lang.String actionName)
          sets the class name of the Action of this Service
 void setAuthChecker(java.lang.String authChecker)
          Setter for property authChecker.
 void setDynamicView(boolean dynamicView)
          Setter for property dynamicView.
 void setName(java.lang.String name)
          sets the name of this Service
 void setStylesheet(java.lang.String stylesheet)
          Setter for property stylesheet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInfo

public ServiceInfo()
Creates a new instance of ServiceInfo

ServiceInfo

public ServiceInfo(java.lang.String name,
                   java.lang.String actionName,
                   java.lang.String stylesheet)
Creates a ServiceInfo with the given settings

ServiceInfo

public ServiceInfo(java.lang.String name,
                   java.lang.String actionName,
                   java.lang.String stylesheet,
                   boolean dynamicView)
Creates a ServiceInfo with the given settings
Method Detail

getName

public java.lang.String getName()
gets the name of this Service
Returns:
Value of property name.

setName

public void setName(java.lang.String name)
sets the name of this Service
Parameters:
name - New value of property name.

getActionName

protected java.lang.String getActionName()
returns the class name of the Action connected to this Service
Returns:
Value of property action.

setActionName

protected void setActionName(java.lang.String actionName)
sets the class name of the Action of this Service
Parameters:
action - New value of property action.

getAction

public Action getAction()
                 throws ControllerException
returns an instance of the Action connected to this Service

getStylesheet

public java.lang.String getStylesheet()
Getter for property stylesheet.
Returns:
Value of property stylesheet.

setStylesheet

public void setStylesheet(java.lang.String stylesheet)
Setter for property stylesheet.
Parameters:
stylesheet - New value of property stylesheet.

getAuthChecker

public java.lang.String getAuthChecker()
Getter for property authChecker.
Returns:
Value of property authChecker.

setAuthChecker

public void setAuthChecker(java.lang.String authChecker)
Setter for property authChecker.
Parameters:
authChecker - New value of property authChecker.

isDynamicView

public boolean isDynamicView()
Getter for property dynamicView.
Returns:
Value of property dynamicView.

setDynamicView

public void setDynamicView(boolean dynamicView)
Setter for property dynamicView.
Parameters:
dynamicView - New value of property dynamicView.

More information