Class QueryParameterInjectorFilter

java.lang.Object
org.openremote.container.web.QueryParameterInjectorFilter
All Implemented Interfaces:
javax.ws.rs.client.ClientRequestFilter

@Provider public class QueryParameterInjectorFilter extends Object implements javax.ws.rs.client.ClientRequestFilter
A filter for injecting query parameters into the request URI. The query parameters are extracted from the request property QUERY_PARAMETERS_PROPERTY. Any Protocol.DYNAMIC_VALUE_PLACEHOLDER in the query parameters will be replaced with the DYNAMIC_VALUE_PROPERTY from the request. Any Protocol.DYNAMIC_TIME_PLACEHOLDER_REGEXP in the query parameters will be replaced with the current system time in the specified format with optional offset.
  • Field Details

    • DYNAMIC_VALUE_PROPERTY

      public static final String DYNAMIC_VALUE_PROPERTY
      Set a property on the request using this name to inject dynamic string values into
    • QUERY_PARAMETERS_PROPERTY

      public static final String QUERY_PARAMETERS_PROPERTY
      Set a property on the request using this name to inject query parameters; the value should be a MultivaluedMap.
    • DYNAMIC_TIME_PATTERN

      public static final Pattern DYNAMIC_TIME_PATTERN
  • Constructor Details

    • QueryParameterInjectorFilter

      public QueryParameterInjectorFilter()
  • Method Details

    • filter

      public void filter(javax.ws.rs.client.ClientRequestContext requestContext) throws IOException
      Specified by:
      filter in interface javax.ws.rs.client.ClientRequestFilter
      Throws:
      IOException