|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.portal.appintegrator.layer.AbstractIntegrationLayer
Copyright: Copyright (c) 2002 by SAP AG Description
| Fields inherited from interface com.sapportals.portal.appintegrator.layer.IIntegrationLayer |
PROPNAME_MANDATORY_PARAMETERS, PROPNAME_NEXT_LAYER, PROPNAME_OPTIONAL_PARAMETERS |
| Constructor Summary | |
AbstractIntegrationLayer()
|
|
| Method Summary | |
java.util.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(java.lang.String id)
Returns the boolean value of the parameter defined by its id for this layer.
|
IParameterConveyor |
getConveyor()
Returns the conveyor. |
java.lang.Exception |
getException()
Returns the exception the occured during the processing of this layer or null
if the processing was succesful. |
java.lang.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(java.lang.String id)
Returns the long value of the parameter defined by its id for this layer.
|
java.util.Enumeration |
getMandatoryParameters()
Returns an enumeration over the mandatory parameters of this layer |
java.lang.String |
getNextLayer()
Returns the id of the next layer in the layer stack. |
com.sapportals.portal.prt.pom.INode |
getNode()
Returns the node. |
java.util.Enumeration |
getOptionalParameters()
Returns an enumeration over the optional parameters of this layer |
java.lang.Object |
getParameter(java.lang.String id)
Returns the value of the parameter defined by its id for this layer. |
com.sapportals.portal.prt.component.IPortalComponentRequest |
getRequest()
Returns the request. |
protected javax.servlet.http.Cookie |
getSAPWPActiveCookie(com.sapportals.portal.prt.util.AbstractURI uri)
returns the SAPWP_active cookie for the given uri which indicates the remote system that it runs in a Portal environment |
java.lang.String |
getStringParameter(java.lang.String id)
Returns the String value of the parameter defined by its id for this layer.
|
java.util.Enumeration |
getValidValues(java.lang.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(com.sapportals.portal.prt.component.IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
java.lang.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 java.lang.String |
processTemplate(java.lang.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(com.sapportals.portal.prt.component.IPortalComponentResponse response)
This method is used to produce the output of this layer. |
void |
setException(java.lang.Exception e)
set the exception for this layer |
protected void |
setParameter(java.lang.String id,
java.lang.Object value)
Sets the value of the parameter given by its id for the THIS layer |
protected void |
setParameterForNextLayer(java.lang.String id,
java.lang.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 |
java.lang.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(com.sapportals.portal.prt.component.IPortalComponentRequest request,
IParameterConveyor conveyor,
int layerNo,
java.lang.String layerName)
IIntegrationLayerinit in interface IIntegrationLayerIIntegrationLayer.init(IPortalComponentRequest, IParameterConveyor, int, String)public final int getLayerNo()
IIntegrationLayergetLayerNo in interface IIntegrationLayerIIntegrationLayer.getLayerNo()public final java.util.Enumeration getMandatoryParameters()
IIntegrationLayergetMandatoryParameters in interface IIntegrationLayerIIntegrationLayer.getMandatoryParameters()public final java.util.Enumeration getOptionalParameters()
IIntegrationLayergetOptionalParameters in interface IIntegrationLayerIIntegrationLayer.getOptionalParameters()public final boolean missingParameters()
IIntegrationLayermissingParameters in interface IIntegrationLayerIIntegrationLayer.missingParameters()public final java.lang.Exception getException()
IIntegrationLayernull
if the processing was succesful.getException in interface IIntegrationLayerIIntegrationLayer.getException()public final void setException(java.lang.Exception e)
setException in interface IIntegrationLayerpublic final boolean hasException()
IIntegrationLayerhasException in interface IIntegrationLayerIIntegrationLayer.hasException()public java.lang.String getNextLayer()
IIntegrationLayergetNextLayer in interface IIntegrationLayerIIntegrationLayer.getNextLayer()public final com.sapportals.portal.prt.pom.INode getNode()
public final com.sapportals.portal.prt.component.IPortalComponentRequest getRequest()
public final IParameterConveyor getConveyor()
public final java.lang.String getLayerId()
IIntegrationLayergetLayerId in interface IIntegrationLayerIIntegrationLayer.getLayerId()public final java.lang.Object getParameter(java.lang.String id)
id for this layer.id - the name of the parameterpublic final java.lang.String getStringParameter(java.lang.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 parametergetParameter(String)public final boolean getBooleanParameter(java.lang.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 parametergetParameter(String),
Boolean.valueOf(java.lang.String)public final long getLongParameter(java.lang.String id)
id for this layer.
If the parameter is not a long, -1 is returned.id - the name of the parametergetParameter(String)public final java.util.Enumeration getValidValues(java.lang.String parameter)
IIntegrationLayergetValidValues in interface IIntegrationLayerIIntegrationLayer.getValidValues(String)public final boolean isEmbedded()
public final boolean isDebugMode()
isDebugMode in interface IIntegrationLayerpublic boolean stopProcessing()
IIntegrationLayerstopProcessing in interface IIntegrationLayercom.sapportals.portal.appintegrator.layer.IIntegrationLayerpublic final java.util.Map assembleParameters()
public final java.lang.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(com.sapportals.portal.prt.component.IPortalComponentResponse response)
IIntegrationLayerprolog, processLayer() and epilog.render in interface IIntegrationLayerIIntegrationLayer.render(IPortalComponentResponse)
protected final void setParameter(java.lang.String id,
java.lang.Object value)
value of the parameter given by its id for the THIS layerid - the id of the parametervalue - the value for the next layer
protected final void setParameterForNextLayer(java.lang.String id,
java.lang.Object value)
value of the parameter given by its id for the NEXT layerid - the id of the parametervalue - the value for the next layerprotected final java.lang.String processTemplate(java.lang.String template)
protected javax.servlet.http.Cookie getSAPWPActiveCookie(com.sapportals.portal.prt.util.AbstractURI uri)
uri - the URI for which domain the Cookie will be set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||