Class Contexts

java.lang.Object
io.sentry.protocol.Contexts
All Implemented Interfaces:
JsonSerializable
Direct Known Subclasses:
CombinedContextsView

public class Contexts extends Object implements JsonSerializable
  • Field Details

  • Constructor Details

    • Contexts

      public Contexts()
    • Contexts

      public Contexts(@NotNull @NotNull Contexts contexts)
  • Method Details

    • getTrace

      @Nullable public @Nullable SpanContext getTrace()
    • setTrace

      public void setTrace(@NotNull @NotNull SpanContext traceContext)
    • getProfile

      @Nullable public @Nullable ProfileContext getProfile()
    • setProfile

      public void setProfile(@Nullable @Nullable ProfileContext profileContext)
    • getApp

      @Nullable public @Nullable App getApp()
    • setApp

      public void setApp(@NotNull @NotNull App app)
    • getBrowser

      @Nullable public @Nullable Browser getBrowser()
    • setBrowser

      public void setBrowser(@NotNull @NotNull Browser browser)
    • getDevice

      @Nullable public @Nullable Device getDevice()
    • setDevice

      public void setDevice(@NotNull @NotNull Device device)
    • getOperatingSystem

      @Nullable public @Nullable OperatingSystem getOperatingSystem()
    • setOperatingSystem

      public void setOperatingSystem(@NotNull @NotNull OperatingSystem operatingSystem)
    • getRuntime

      @Nullable public @Nullable SentryRuntime getRuntime()
    • setRuntime

      public void setRuntime(@NotNull @NotNull SentryRuntime runtime)
    • getGpu

      @Nullable public @Nullable Gpu getGpu()
    • setGpu

      public void setGpu(@NotNull @NotNull Gpu gpu)
    • getResponse

      @Nullable public @Nullable Response getResponse()
    • withResponse

      public void withResponse(HintUtils.SentryConsumer<Response> callback)
    • setResponse

      public void setResponse(@NotNull @NotNull Response response)
    • getSpring

      @Nullable public @Nullable Spring getSpring()
    • setSpring

      public void setSpring(@NotNull @NotNull Spring spring)
    • size

      public int size()
    • getSize

      public int getSize()
    • isEmpty

      public boolean isEmpty()
    • containsKey

      public boolean containsKey(@Nullable @Nullable Object key)
    • get

      @Nullable public @Nullable Object get(@Nullable @Nullable Object key)
    • put

      @Nullable public @Nullable Object put(@Nullable @Nullable String key, @Nullable @Nullable Object value)
    • set

      @Nullable public @Nullable Object set(@Nullable @Nullable String key, @Nullable @Nullable Object value)
    • remove

      @Nullable public @Nullable Object remove(@Nullable @Nullable Object key)
    • keys

      @NotNull public @NotNull Enumeration<String> keys()
    • entrySet

      @NotNull public @NotNull Set<Map.Entry<String,Object>> entrySet()
    • putAll

      public void putAll(@Nullable @Nullable Map<? extends String,? extends Object> m)
    • putAll

      public void putAll(@Nullable @Nullable Contexts contexts)
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • serialize

      public void serialize(@NotNull @NotNull ObjectWriter writer, @NotNull @NotNull ILogger logger) throws IOException
      Specified by:
      serialize in interface JsonSerializable
      Throws:
      IOException