|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.appintegrator.layer.AbstractIntegrationLayer
Copyright: Copyright (c) 2002 by SAP AG Description
| Field Summary |
| Fields inherited from interface com.sapportals.portal.appintegrator.layer.IIntegrationLayer |
PROPNAME_MANDATORY_PARAMETERS, PROPNAME_NEXT_LAYER, PROPNAME_OPTIONAL_PARAMETERS |
| Constructor Summary | |
AbstractIntegrationLayer()
|
|
| Method Summary | |
Map |
assembleParameters()
assembles all properties of the current layer into a HashMap |
void |
epilog()
This method is used to provide the result of this layer for the subsequent layers and it has to be called after prolog and processLayer() and
before render(). |
boolean |
getBooleanParameter(String id)
Returns the boolean value of the parameter defined by its id for this layer.
|
IParameterConveyor |
getConveyor()
Returns the conveyor. |
Exception |
getException()
Returns the exception the occured during the processing of this layer or null
if the processing was succesful. |
String |
getLayerId()
Returns the (hopefully unique) id of this layer. |
int |
getLayerNo()
Returns the number of this layer that is the position of this layer in the layer stack. |
long |
getLongParameter(String id)
Returns the long value of the parameter defined by its id for this layer.
|
Enumeration |
getMandatoryParameters()
Returns an enumeration over the mandatory parameters of this layer |
String |
getNextLayer()
Returns the id of the next layer in the layer stack. |
INode |
getNode()
Returns the node. |
Enumeration |
getOptionalParameters()
Returns an enumeration over the optional parameters of this layer |
Object |
getParameter(String id)
Returns the value of the parameter defined by its id for this layer. |
IPortalComponentRequest |
getRequest()
Returns the request. |
protected Cookie |
getSAPWPActiveCookie(AbstractURI uri)
returns the SAPWP_active cookie for the given uri which indicates the remote system that it runs in a Portal environment |
String |
getStringParameter(String id)
Returns the String value of the parameter defined by its id for this layer.
|
Enumeration |
getValidValues(String parameter)
Returns an enumeration over the valid values of the given parameter. |
boolean |
hasException()
Returns true if an exception occured during the processing of this layer |
void |
init(IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
String layerName)
Initializes this layer. |
boolean |
isDebugMode()
Returns true if debug mode is active (DebugMode == true) but only for the first request (no $action). |
boolean |
isEmbedded()
Returns true if the current component is embedded or not |
boolean |
missingParameters()
Returns true, if there are one or more mandatory parameters missing to process this layer. |
void |
processLayer()
This method is used to do the real job of this layer (ie. |
protected String |
processTemplate(String template)
processes the given template by using the template processor service |
void |
prolog()
This method is used to retrieve the input parameters for this layer and it is called before processLayer(), epilog and render(). |
void |
render(IPortalComponentResponse response)
This method is used to produce the output of this layer. |
void |
setException(Exception e)
set the exception for this layer |
protected void |
setParameter(String id,
Object value)
Sets the value of the parameter given by its id for the THIS layer |
protected void |
setParameterForNextLayer(String id,
Object value)
Sets the value of the parameter given by its id for the NEXT layer |
boolean |
stopProcessing()
Returns whether the layer processing should stop at this layer or not |
String |
swapOutCurrentLayer()
Performs a Redirection of the current component to itself - i.e. do another Round Trip. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractIntegrationLayer()
| Method Detail |
public void init(IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
String layerName)
IIntegrationLayer
init in interface IIntegrationLayerrequest - the Portal Component Requestconveyor - the Parameter Conveyor that will provide this layer with its parameterlayerNo - the number of this layer - i.e. the position in the layer stackIIntegrationLayer.init(IPortalComponentRequest, IParameterConveyor, int, String)public final int getLayerNo()
IIntegrationLayer
getLayerNo in interface IIntegrationLayerIIntegrationLayer.getLayerNo()public final Enumeration getMandatoryParameters()
IIntegrationLayer
getMandatoryParameters in interface IIntegrationLayerIIntegrationLayer.getMandatoryParameters()public final Enumeration getOptionalParameters()
IIntegrationLayer
getOptionalParameters in interface IIntegrationLayerIIntegrationLayer.getOptionalParameters()public final boolean missingParameters()
IIntegrationLayer
missingParameters in interface IIntegrationLayerIIntegrationLayer.missingParameters()public final Exception getException()
IIntegrationLayernull
if the processing was succesful.
getException in interface IIntegrationLayerIIntegrationLayer.getException()public final void setException(Exception e)
setException in interface IIntegrationLayerpublic final boolean hasException()
IIntegrationLayer
hasException in interface IIntegrationLayerIIntegrationLayer.hasException()public String getNextLayer()
IIntegrationLayer
getNextLayer in interface IIntegrationLayerIIntegrationLayer.getNextLayer()public final INode getNode()
public final IPortalComponentRequest getRequest()
public final IParameterConveyor getConveyor()
public final String getLayerId()
IIntegrationLayer
getLayerId in interface IIntegrationLayerIIntegrationLayer.getLayerId()public final Object getParameter(String id)
id for this layer.
id - the name of the parameter
public final String getStringParameter(String id)
id for this layer.
If the parameter is not a String, the toString() result of the value is returned.
id - the name of the parameter
getParameter(String)public final boolean getBooleanParameter(String id)
id for this layer.
If the parameter value is of type Boolean, the boolean value is returned.
For type String the method returns true if then parameter value
is "true", "yes" or "1" - (ignoring the case); otherwise it returns false.
id - the name of the parameter
getParameter(String),
Boolean.valueOf(java.lang.String)public final long getLongParameter(String id)
id for this layer.
If the parameter is not a long, -1 is returned.
id - the name of the parameter
getParameter(String)public final Enumeration getValidValues(String parameter)
IIntegrationLayer
getValidValues in interface IIntegrationLayerIIntegrationLayer.getValidValues(String)public final boolean isEmbedded()
public final boolean isDebugMode()
isDebugMode in interface IIntegrationLayerpublic boolean stopProcessing()
IIntegrationLayer
stopProcessing in interface IIntegrationLayerpublic final Map assembleParameters()
public final String swapOutCurrentLayer()
public void processLayer()
IIntegrationLayerepilog and before render() and
processLayer().
processLayer in interface IIntegrationLayerIIntegrationLayer.processLayer()public void epilog()
IIntegrationLayerprolog and processLayer() and
before render().
epilog in interface IIntegrationLayerIIntegrationLayer.epilog()public void prolog()
IIntegrationLayerprocessLayer(), epilog and render().
prolog in interface IIntegrationLayerIIntegrationLayer.prolog()public void render(IPortalComponentResponse response)
IIntegrationLayerprolog, processLayer() and epilog.
render in interface IIntegrationLayerIIntegrationLayer.render(IPortalComponentResponse)
protected final void setParameter(String id,
Object value)
value of the parameter given by its id for the THIS layer
id - the id of the parametervalue - the value for the next layer
protected final void setParameterForNextLayer(String id,
Object value)
value of the parameter given by its id for the NEXT layer
id - the id of the parametervalue - the value for the next layerprotected final String processTemplate(String template)
protected Cookie getSAPWPActiveCookie(AbstractURI uri)
uri - the URI for which domain the Cookie will be set
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||