|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.appintegrator.layer.AbstractIntegrationLayer
public abstract class 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 | |
|---|---|
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 |
| 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 stacklayerName - the (unique) id of this layerIIntegrationLayer.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 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()
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 float getFloatParameter(String id)
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 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 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 layerpublic final String processTemplate(String template)
protected Cookie getSAPWPActiveCookie(AbstractURI uri)
uri - the URI for which domain the Cookie will be set
protected 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
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||