Class RequestContextProperties

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class RequestContextProperties
    extends Properties
    Turns get(name) into get(name,request) using the request given at construction time. This is used to allow the query's request to be supplied to all property requests without forcing users of the query.properties() to supply this explicitly.
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      RequestContextProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​(com.yahoo.processing.request.CompoundName name, java.util.Map<java.lang.String,​java.lang.String> context, com.yahoo.processing.request.Properties substitution)  
      java.util.Map<java.lang.String,​java.lang.Object> listProperties​(com.yahoo.processing.request.CompoundName path, java.util.Map<java.lang.String,​java.lang.String> context, com.yahoo.processing.request.Properties substitution)  
      void set​(com.yahoo.processing.request.CompoundName name, java.lang.Object value, java.util.Map<java.lang.String,​java.lang.String> context)  
      • Methods inherited from class com.yahoo.processing.request.Properties

        asBoolean, asDouble, asInteger, asLong, asString, chain, clone, cloneMap, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getInstance, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getString, getString, getString, getString, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, set, set, set
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RequestContextProperties

        public RequestContextProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
    • Method Detail

      • get

        public java.lang.Object get​(com.yahoo.processing.request.CompoundName name,
                                    java.util.Map<java.lang.String,​java.lang.String> context,
                                    com.yahoo.processing.request.Properties substitution)
        Overrides:
        get in class com.yahoo.processing.request.Properties
      • set

        public void set​(com.yahoo.processing.request.CompoundName name,
                        java.lang.Object value,
                        java.util.Map<java.lang.String,​java.lang.String> context)
        Overrides:
        set in class com.yahoo.processing.request.Properties
      • listProperties

        public java.util.Map<java.lang.String,​java.lang.Object> listProperties​(com.yahoo.processing.request.CompoundName path,
                                                                                     java.util.Map<java.lang.String,​java.lang.String> context,
                                                                                     com.yahoo.processing.request.Properties substitution)
        Overrides:
        listProperties in class com.yahoo.processing.request.Properties