Skip navigation links
org.ops4j.pax.logging

Class PaxContext

    • Constructor Detail

      • PaxContext

        public PaxContext()
    • Method Detail

      • putAll

        public void putAll(Map<String,Object> context)
        Sets all values from passed map in this thread-bound MDC context. This methods preserves existing values.
        Parameters:
        context -
      • put

        public void put(String key,
                        Object o)
        Sets single value in this thread-bound MDC context.
        Parameters:
        key -
        o -
      • get

        public Object get(String key)
        Gets a value from this thread-bound MDC context.
        Parameters:
        key -
        Returns:
      • remove

        public void remove(String key)
        Removes a value from this thread-bound MDC context.
        Parameters:
        key -
      • getContext

        public Map<String,Object> getContext()
        Gets full map of values related to this thread-bound MDC context.
        Returns:
      • getCopyOfContextMap

        public Map<String,Object> getCopyOfContextMap()
        Gets a copy of full map of calues related to this thread-bound MDC context.
        Returns:
      • clear

        public void clear()
        Clears entire thread-bound MDC context.
      • setContextMap

        public void setContextMap(Map<String,Object> contextMap)
        Sets all values from passed map in this thread-bound MDC context. This methods always clears existing values first.
        Parameters:
        contextMap -

Copyright © 2006–2022 OPS4J - Open Participation Software for Java. All rights reserved.