Tabnine Logo
RequestScope.referenceCurrent
Code IndexAdd Tabnine to your IDE (free)

How to use
referenceCurrent
method
in
org.glassfish.jersey.process.internal.RequestScope

Best Java code snippets using org.glassfish.jersey.process.internal.RequestScope.referenceCurrent (Showing top 14 results out of 315)

origin: jersey/jersey

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.requestContext = scope.referenceCurrent();
  } else {
    this.requestContext = null;
  }
}
origin: jersey/jersey

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.requestContext = scope.referenceCurrent();
  } else {
    this.requestContext = null;
  }
}
origin: org.glassfish.jersey.core/jersey-client

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.requestContext = scope.referenceCurrent();
  } else {
    this.requestContext = null;
  }
}
origin: jersey/jersey

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: jersey/jersey

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: org.glassfish.jersey.bundles/jaxrs-ri

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.requestContext = scope.referenceCurrent();
  } else {
    this.requestContext = null;
  }
}
origin: com.eclipsesource.jaxrs/jersey-all

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.scopeInstance = scope.referenceCurrent();
  } else {
    this.scopeInstance = null;
  }
}
origin: hstaudacher/osgi-jax-rs-connector

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.scopeInstance = scope.referenceCurrent();
  } else {
    this.scopeInstance = null;
  }
}
origin: hstaudacher/osgi-jax-rs-connector

/**
 * Create new scoped client response.
 *
 * @param context jersey client response context.
 * @param scope   request scope instance.
 */
public InboundJaxrsResponse(final ClientResponse context, final RequestScope scope) {
  this.context = context;
  this.scope = scope;
  if (this.scope != null) {
    this.scopeInstance = scope.referenceCurrent();
  } else {
    this.scopeInstance = null;
  }
}
origin: org.glassfish.jersey.core/jersey-server

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: hstaudacher/osgi-jax-rs-connector

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: org.glassfish.jersey.bundles/jaxrs-ri

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: hstaudacher/osgi-jax-rs-connector

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
origin: com.eclipsesource.jaxrs/jersey-all

chunked.setContext(
    runtime.requestScope,
    runtime.requestScope.referenceCurrent(),
    request,
    response,
org.glassfish.jersey.process.internalRequestScopereferenceCurrent

Javadoc

Get a new reference for to currently running request scope context. This call prevents automatic RequestContext#release() of the scope context once the task that runs in the scope has finished.

The returned scope context may be used to run additional task(s) in the same request scope using one of the #runInScope(RequestContext, ...) methods.

Note that the returned context must be RequestContext#release() manually once not needed anymore to prevent memory leaks.

Popular methods of RequestScope

  • current
  • runInScope
    Runs the org.glassfish.jersey.internal.util.Producer in the request scope initialized from the Reque
  • retrieveCurrent
  • <init>
  • activate
    Stores the provided RequestContext to thread-local variable belonging to current request scope.
  • createContext
    Creates a new instance of the RequestContext. This instance can be then used to run task in the requ
  • release
    Releases the provided RequestContext to thread-local variable belonging to current request scope.
  • resume
    Resumes the provided RequestContext to thread-local variable belonging to current request scope.
  • createInstance
    Creates a new instance of the RequestScope.Instance. This instance can be then used to run task in t
  • isActive
  • resumeCurrent
  • setCurrent
  • resumeCurrent,
  • setCurrent,
  • shutdown,
  • suspend

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now