it.eng.spago.util
Class ContextScooping

java.lang.Object
  extended by it.eng.spago.util.ContextScooping

public abstract class ContextScooping
extends java.lang.Object

Author:

Constructor Summary
ContextScooping()
           
 
Method Summary
static java.lang.Object getScopedParameter(RequestContainer requestContainer, ResponseContainer responseContainer, java.lang.String parameterName, java.lang.String parameterScope)
          Retrieve a parameter from any available context.
static java.lang.Object getScopedParameter(RequestContainer requestContainer, ResponseContainer responseContainer, java.lang.String parameterName, java.lang.String parameterScope, SourceBean paramConfig)
           
static java.lang.Object getScopedParameter(RequestContextIFace requestContext, SourceBean paramConfig)
          Retrieve a parameter from any available context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextScooping

public ContextScooping()
Method Detail

getScopedParameter

public static java.lang.Object getScopedParameter(RequestContextIFace requestContext,
                                                  SourceBean paramConfig)
Retrieve a parameter from any available context.

Parameters:
requestContext - The request context
paramConfig - SourceBean containing configuration information for parameter
Returns:
The value of the parameter

getScopedParameter

public static java.lang.Object getScopedParameter(RequestContainer requestContainer,
                                                  ResponseContainer responseContainer,
                                                  java.lang.String parameterName,
                                                  java.lang.String parameterScope)
Retrieve a parameter from any available context.

Parameters:
requestContainer - Current RequestContainer
responseContainer - Current ResponseContainer
parameterName - The name of the parameter
parameterScope - The scope of the parameter
Returns:
The value of the parameter

getScopedParameter

public static java.lang.Object getScopedParameter(RequestContainer requestContainer,
                                                  ResponseContainer responseContainer,
                                                  java.lang.String parameterName,
                                                  java.lang.String parameterScope,
                                                  SourceBean paramConfig)