org.glassfish.jersey.internal.util.collection.Value.get()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(6.2k)|赞(0)|评价(0)|浏览(137)

本文整理了Java中org.glassfish.jersey.internal.util.collection.Value.get()方法的一些代码示例,展示了Value.get()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.get()方法的具体详情如下:
包路径:org.glassfish.jersey.internal.util.collection.Value
类名称:Value
方法名:get

Value.get介绍

[英]Get the stored value.
[中]获取存储的值。

代码示例

代码示例来源:origin: jersey/jersey

/**
   * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model.
   *
   * @return Runtime resource model created from this resource model.
   */
  public RuntimeResourceModel getRuntimeResourceModel() {
    return runtimeRootResourceModelValue.get();
  }
}

代码示例来源:origin: jersey/jersey

/**
 * Get the resource name.
 * <p/>
 * If the resource was constructed from a JAX-RS annotated resource class,
 * the resource name will be set to the {@link Class#getName() fully-qualified name}
 * of the resource class.
 *
 * @return reference JAX-RS resource handler class.
 */
public String getName() {
  return name.get();
}

代码示例来源:origin: jersey/jersey

/**
   * Return {@link RuntimeResourceModel runtime resource model} based on this this resource model.
   *
   * @return Runtime resource model created from this resource model.
   */
  public RuntimeResourceModel getRuntimeResourceModel() {
    return runtimeRootResourceModelValue.get();
  }
}

代码示例来源:origin: jersey/jersey

/**
 * Get the resource name.
 * <p/>
 * If the resource was constructed from a JAX-RS annotated resource class,
 * the resource name will be set to the {@link Class#getName() fully-qualified name}
 * of the resource class.
 *
 * @return reference JAX-RS resource handler class.
 */
public String getName() {
  return name.get();
}

代码示例来源:origin: jersey/jersey

@Override
public ScheduledExecutorService getExecutorService() {
  return executorService.get();
}

代码示例来源:origin: jersey/jersey

@Override
public ScheduledExecutorService getExecutorService() {
  return executorService.get();
}

代码示例来源:origin: jersey/jersey

@Override
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException {
  return attributeValues.get(attribute).get();
}

代码示例来源:origin: jersey/jersey

@Override
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException {
  return attributeValues.get(attribute).get();
}

代码示例来源:origin: jersey/jersey

@Override
  public Feature getOAuth1Feature() {
    if (this.accessToken == null) {
      throw new IllegalStateException(LocalizationMessages.ERROR_FLOW_NOT_FINISHED());
    }
    return oAuth1ClientFilterFeature.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 Set<String> getParameterNames() {
  HashSet<String> n = new HashSet<String>();
  n.addAll(keys(context.getUriInfo().getQueryParameters()));
  n.addAll(keys(formParams.get()));
  return n;
}

代码示例来源:origin: jersey/jersey

@Override
public List<String> getParameterValues(String name) {
  ArrayList<String> v = new ArrayList<String>();
  v.addAll(values(context.getUriInfo().getQueryParameters(), name));
  v.addAll(values(formParams.get(), name));
  return v;
}

代码示例来源:origin: jersey/jersey

private Unmarshaller getUnmarshaller(Class type) throws JAXBException {
  final ContextResolver<Unmarshaller> resolver = mtUnmarshaller.get();
  if (resolver != null) {
    Unmarshaller u = resolver.getContext(type);
    if (u != null) {
      return u;
    }
  }
  final JAXBContext ctx = getJAXBContext(type);
  return (ctx == null) ? null : ctx.createUnmarshaller();
}

代码示例来源:origin: jersey/jersey

private JAXBContext getJAXBContext(Class type) throws JAXBException {
  final ContextResolver<JAXBContext> resolver = mtContext.get();
  if (resolver != null) {
    JAXBContext c = resolver.getContext(type);
    if (c != null) {
      return c;
    }
  }
  return getStoredJaxbContext(type);
}

代码示例来源:origin: jersey/jersey

private JAXBContext getJAXBContext(Class type) throws JAXBException {
  final ContextResolver<JAXBContext> jaxbContextContextResolver = mtContext.get();
  if (jaxbContextContextResolver != null) {
    JAXBContext c = jaxbContextContextResolver.getContext(type);
    if (c != null) {
      return c;
    }
  }
  return getStoredJAXBContext(type);
}

代码示例来源:origin: jersey/jersey

@Override
  public void run() {
    try {
      requestScopeListener.resume(foreignScopeInstance, responder.runtime.injectionManager);
      final Response response = responseValue.get();
      responder.process(new ContainerResponse(responder.processingContext.request(), response));
    } catch (final Throwable t) {
      responder.process(t);
    }
  }
});

代码示例来源:origin: jersey/jersey

@Override
  public void run() {
    try {
      requestScopeListener.resume(foreignScopeInstance, responder.runtime.injectionManager);
      final Response response = responseValue.get();
      responder.process(new ContainerResponse(responder.processingContext.request(), response));
    } catch (final Throwable t) {
      responder.process(t);
    }
  }
});

代码示例来源:origin: jersey/jersey

private Router createMethodRouter(final ResourceMethod resourceMethod) {
  Router methodAcceptor = null;
  switch (resourceMethod.getType()) {
    case RESOURCE_METHOD:
    case SUB_RESOURCE_METHOD:
      methodAcceptor = Routers.endpoint(createInflector(resourceMethod));
      break;
    case SUB_RESOURCE_LOCATOR:
      methodAcceptor = locatorBuilder.get().getRouter(resourceMethod);
      break;
  }
  return new PushMethodHandlerRouter(resourceMethod.getInvocable().getHandler(), methodAcceptor);
}

代码示例来源:origin: jersey/jersey

private Router createMethodRouter(final ResourceMethod resourceMethod) {
  Router methodAcceptor = null;
  switch (resourceMethod.getType()) {
    case RESOURCE_METHOD:
    case SUB_RESOURCE_METHOD:
      methodAcceptor = Routers.endpoint(createInflector(resourceMethod));
      break;
    case SUB_RESOURCE_LOCATOR:
      methodAcceptor = locatorBuilder.get().getRouter(resourceMethod);
      break;
  }
  return new PushMethodHandlerRouter(resourceMethod.getInvocable().getHandler(), methodAcceptor);
}

相关文章

微信公众号

最新文章

更多

Value类方法