public abstract class AbstractIntegrationLayer extends Object implements IIntegrationLayer
PROPNAME_MANDATORY_PARAMETERS, PROPNAME_NEXT_LAYER, PROPNAME_OPTIONAL_PARAMETERS| Constructor and Description |
|---|
AbstractIntegrationLayer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRenderingModeHeader() |
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.
|
ApplicationIntegratorException |
getException()
Returns the exception the occured during the processing of this layer or
null
if the processing was succesful. |
float |
getFloatParameter(String id) |
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.
|
protected String |
getLocalOrRemote() |
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. |
Set |
getParameterNames()
returns a set containing all parameter names of the context
|
protected String |
getRemoteMode() |
IPortalComponentRequest |
getRequest()
Returns the request.
|
protected String |
getRequestMethod(String url)
determines the request method to the target URL
|
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" or user-id) but
only for the first request (no $action).
|
boolean |
isEmbedded()
Returns true if the current component is embedded or not
|
boolean |
isRefreshMode() |
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.
|
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(ApplicationIntegratorException e)
set the exception for this layer
|
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
|
public void init(IPortalComponentRequest request, IParameterConveyor conveyor, int layerNo, String layerName)
IIntegrationLayerinit 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 stacklayerName - the (unique) id of this layerIIntegrationLayer.init(IPortalComponentRequest, IParameterConveyor,
int, String)public final int getLayerNo()
IIntegrationLayergetLayerNo in interface IIntegrationLayerIIntegrationLayer.getLayerNo()public final Enumeration getMandatoryParameters()
IIntegrationLayergetMandatoryParameters in interface IIntegrationLayerIIntegrationLayer.getMandatoryParameters()public final Enumeration getOptionalParameters()
IIntegrationLayergetOptionalParameters in interface IIntegrationLayerIIntegrationLayer.getOptionalParameters()public final boolean missingParameters()
IIntegrationLayermissingParameters in interface IIntegrationLayerIIntegrationLayer.missingParameters()public final ApplicationIntegratorException getException()
IIntegrationLayernull
if the processing was succesful.getException in interface IIntegrationLayerIIntegrationLayer.getException()public final void setException(ApplicationIntegratorException e)
setException in interface IIntegrationLayerpublic final boolean hasException()
IIntegrationLayerhasException in interface IIntegrationLayerIIntegrationLayer.hasException()public String getNextLayer()
IIntegrationLayergetNextLayer in interface IIntegrationLayerIIntegrationLayer.getNextLayer()public final INode getNode()
public final IPortalComponentRequest getRequest()
public final IParameterConveyor getConveyor()
public final String getLayerId()
IIntegrationLayergetLayerId in interface IIntegrationLayerIIntegrationLayer.getLayerId()public final Object getParameter(String id)
id for
this layer.id - the name of the parameterpublic 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 parametergetParameter(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 parametergetParameter(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 parametergetParameter(String)public float getFloatParameter(String id)
public final Enumeration getValidValues(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 IIntegrationLayerpublic final Set getParameterNames()
public final Map assembleParameters()
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)public final void setParameter(String id, Object value)
value of the parameter given by its id
for the THIS layerid - the id of the parametervalue - the value for the next layerprotected final void setParameterForNextLayer(String id, Object value)
value of the parameter given by its id
for the NEXT layerid - the id of the parametervalue - the value for the next layerpublic final String processTemplate(String template)
protected Cookie getSAPWPActiveCookie(AbstractURI uri)
uri - the URI for which domain the Cookie will be setprotected String getLocalOrRemote()
protected String getRemoteMode()
protected String getRequestMethod(String url)
public boolean isRefreshMode()
public void addRenderingModeHeader()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/appintegration/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice