本文整理了Java中org.glassfish.jersey.internal.util.collection.Ref.get
方法的一些代码示例,展示了Ref.get
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ref.get
方法的具体详情如下:
包路径:org.glassfish.jersey.internal.util.collection.Ref
类名称:Ref
方法名:get
暂无
代码示例来源:origin: jersey/jersey
/**
* 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();
}
代码示例来源:origin: jersey/jersey
/**
* 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();
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@Override
public T provide() {
return referenceFactory.get().get();
}
代码示例来源:origin: jersey/jersey
@Override
public T get() {
return referenceFactory.get().get();
}
代码示例来源:origin: jersey/jersey
@Override
public T provide() {
return referenceFactory.get().get();
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@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));
}
代码示例来源:origin: jersey/jersey
@Override
public T get() {
return referenceFactory.get().get();
}
代码示例来源:origin: jersey/jersey
/**
* 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();
}
代码示例来源:origin: jersey/jersey
/**
* 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();
}
代码示例来源:origin: jersey/jersey
@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;
}
代码示例来源:origin: jersey/jersey
@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;
}
代码示例来源:origin: jersey/jersey
wrapper.forward(requestProviderRef.get().get(), new HttpServletResponseWrapper(responseProviderRef.get().get()) {
代码示例来源:origin: jersey/jersey
final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
final Endpoint endpoint = endpointRef.get();
if (endpoint == null) {
代码示例来源:origin: jersey/jersey
final RequestProcessingContext data = Stages.process(context, requestProcessingRoot, endpointRef);
final Endpoint endpoint = endpointRef.get();
if (endpoint == null) {
代码示例来源:origin: org.glassfish.jersey.core/jersey-server
@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;
}
内容来源于网络,如有侵权,请联系作者删除!