Interface Context

  • All Superinterfaces:
    java.util.Map<java.lang.String,​java.lang.Object>, com.lucidworks.apollo.pipeline.PropertyContext

    public interface Context
    extends com.lucidworks.apollo.pipeline.PropertyContext, java.util.Map<java.lang.String,​java.lang.Object>
    Additional context to pass along with messages in the pipeline
    • Method Detail

      • newChildContext

        Context newChildContext()
      • getParentContext

        java.util.Optional<Context> getParentContext()
        Return this context's immediate parent
        Returns:
      • isSignal

        boolean isSignal()
      • isSignal

        boolean isSignal​(java.lang.String signal)
      • setSignal

        void setSignal​(java.lang.String signal,
                       java.lang.String value)
      • clearSignal

        void clearSignal()
      • set

        Context set​(java.lang.String key,
                    java.lang.Object value)
        Specified by:
        set in interface com.lucidworks.apollo.pipeline.PropertyContext
      • setShared

        Context setShared​(java.lang.String key,
                          java.lang.Object value)
      • getProperty

        java.lang.Object getProperty​(java.lang.String key)
      • hasProperty

        boolean hasProperty​(java.lang.String key)
      • getProperty

        <T> T getProperty​(java.lang.String name,
                          java.lang.Class<T> clazz)
      • setProperty

        void setProperty​(java.lang.String key,
                         java.lang.Object value)
      • removeProperty

        java.lang.Object removeProperty​(java.lang.String key)
      • setProperties

        void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> props)
      • getRequestHeaders

        MultivaluedMap<java.lang.String,​java.lang.String> getRequestHeaders()
      • flatten

        java.util.Map<java.lang.String,​java.lang.Object> flatten()
      • setStageCallback

        void setStageCallback​(StageCallback<?> stageCallback)