/** * Get a {@link Value} instance holding the asynchronous context associated with this request processing context. * * May return an empty value if no asynchronous context has been initialized in this request processing context yet. * * @return value instance holding the asynchronous context associated with this request processing context. * The returned value may be empty, if no asynchronous context has been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public Value<AsyncContext> asyncContextValue() { return asyncContextValueRef.get(); }
/** * Get a {@link Value} instance holding the asynchronous context associated with this request processing context. * * May return an empty value if no asynchronous context has been initialized in this request processing context yet. * * @return value instance holding the asynchronous context associated with this request processing context. * The returned value may be empty, if no asynchronous context has been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public Value<AsyncContext> asyncContextValue() { return asyncContextValueRef.get(); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); return this.reference == otherRef || (this.reference != null && this.reference.equals(otherRef)); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); T localRef = this.reference; return localRef == otherRef || (localRef != null && localRef.equals(otherRef)); }
@Override public T provide() { return referenceFactory.get().get(); }
@Override public T get() { return referenceFactory.get().get(); }
@Override public T provide() { return referenceFactory.get().get(); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); return this.reference == otherRef || (this.reference != null && this.reference.equals(otherRef)); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); T ref = this.reference; return ref == otherRef || (ref != null && ref.equals(otherRef)); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); T localRef = this.reference; return localRef == otherRef || (localRef != null && localRef.equals(otherRef)); }
@Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (!(obj instanceof Ref)) { return false; } Object otherRef = ((Ref) obj).get(); T ref = this.reference; return ref == otherRef || (ref != null && ref.equals(otherRef)); }
@Override public T get() { return referenceFactory.get().get(); }
/** * Get the asynchronous context associated with this request processing context. * * May return {@code null} if no asynchronous context has been initialized in this request processing context yet. * * @return asynchronous context associated with this request processing context, or {@code null} if the * asynchronous context has not been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public AsyncContext asyncContext() { return asyncContextValueRef.get().get(); }
/** * Get the asynchronous context associated with this request processing context. * * May return {@code null} if no asynchronous context has been initialized in this request processing context yet. * * @return asynchronous context associated with this request processing context, or {@code null} if the * asynchronous context has not been initialized yet * (see {@link #initAsyncContext(org.glassfish.jersey.internal.util.collection.Value)}). */ public AsyncContext asyncContext() { return asyncContextValueRef.get().get(); }
@Override public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException { if (variants == null || variants.isEmpty()) { throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY); } final Ref<String> varyValueRef = Refs.emptyRef(); final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef); this.varyValue = varyValueRef.get(); return variant; }
@Override public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException { if (variants == null || variants.isEmpty()) { throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY); } final Ref<String> varyValueRef = Refs.emptyRef(); final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef); this.varyValue = varyValueRef.get(); return variant; }
final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef); final Endpoint endpoint = endpointRef.get(); if (endpoint == null) {
final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef); final Endpoint endpoint = endpointRef.get(); if (endpoint == null) {
@Override public Variant selectVariant(final List<Variant> variants) throws IllegalArgumentException { if (variants == null || variants.isEmpty()) { throw new IllegalArgumentException(METHOD_PARAMETER_CANNOT_BE_NULL_OR_EMPTY); } final Ref<String> varyValueRef = Refs.emptyRef(); final Variant variant = VariantSelector.selectVariant(this, variants, varyValueRef); this.varyValue = varyValueRef.get(); return variant; }