Class StaticParameter

java.lang.Object
com.invirgance.convirgance.web.parameter.StaticParameter
All Implemented Interfaces:
Parameter

@Wiring public class StaticParameter extends Object implements Parameter
Parameter implementation that provides a fixed, predefined value. StaticParameter supplies a constant value that doesn't depend on the HTTP request. This is useful for providing configuration values, default settings, or context information that should be available to services and transformers.
 Use this parameter type when you need to:
 - Include configuration constants in service processing
 - Add metadata that isn't part of the request
 - Provide environment or context information to services
 
Author:
jbanes
  • Constructor Details

    • StaticParameter

      public StaticParameter()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Parameter
      Gets the name of this parameter.
      Specified by:
      getName in interface Parameter
      Returns:
      The parameter name
    • setName

      public void setName(String name)
      Sets the parameter name.
      Parameters:
      name - The name.
    • getValue

      public Object getValue(HttpRequest request)
      Returns the value regardless of the request.
      Specified by:
      getValue in interface Parameter
      Parameters:
      request - The request.
      Returns:
      The value.
    • setValue

      public void setValue(Object value)
      Sets the value.
      Parameters:
      value - The value.