congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RestContextImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
RestContextImpl
in
org.jboss.arquillian.extension.rest.warp.spi

Best Java code snippets using org.jboss.arquillian.extension.rest.warp.spi.RestContextImpl (Showing top 12 results out of 315)

origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-cxf

  /**
   * Retrieves the {@link RestContext} stored in the request. <p/> If non exists, then new one is being created.
   *
   * @return the rest context
   */
  private RestContextImpl getRestContext() {

    RestContextImpl restContext = (RestContextImpl) servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);

    if (restContext == null) {

      restContext = new RestContextImpl();
      servletRequest.setAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
    }

    return restContext;
  }
}
origin: arquillian/arquillian-extension-rest

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  restContext.setResponse(serverResponse);
  restContext.setSecurityContext(buildSecurityContext());
}
origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-jaxrs-2.0

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  // TODO there is now way to access directly the Response object
  // restContext.setResponse();
  restContext.setSecurityContext(buildSecurityContext());
}
origin: arquillian/arquillian-extension-rest

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  // TODO there is now way to access directly the Response object
  // restContext.setResponse();
  restContext.setSecurityContext(buildSecurityContext());
}
origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-cxf

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  restContext.setResponse(response);
  restContext.setSecurityContext(buildSecurityContext());
}
origin: arquillian/arquillian-extension-rest

  /**
   * Retrieves the {@link RestContext} stored in the request. <p/> If non exists, then new one is being created.
   *
   * @return the rest context
   */
  private RestContextImpl getRestContext() {

    RestContextImpl restContext = (RestContextImpl) servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);

    if (restContext == null) {

      restContext = new RestContextImpl();
      servletRequest.setAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
    }

    return restContext;
  }
}
origin: arquillian/arquillian-extension-rest

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  restContext.setResponse(response);
  restContext.setSecurityContext(buildSecurityContext());
}
origin: arquillian/arquillian-extension-rest

  /**
   * Retrieves the {@link RestContext} stored in the request. <p/> If non exists, then new one is being created.
   *
   * @return the rest context
   */
  private RestContextImpl getRestContext() {

    RestContextImpl restContext = (RestContextImpl) servletRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);

    if (restContext == null) {

      restContext = new RestContextImpl();
      servletRequest.setAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
    }

    return restContext;
  }
}
origin: arquillian/arquillian-extension-rest

/**
 * {@inheritDoc}
 */
@Override
public void build() {
  restContext.setHttpRequest(buildHttpRequest());
  restContext.setHttpResponse(buildHttpResponse());
  restContext.setResponse(containerResponse != null ? containerResponse.getResponse() : null);
  restContext.setSecurityContext(buildSecurityContext());
}
origin: arquillian/arquillian-extension-rest

/**
 * Retrieves the {@link org.jboss.arquillian.extension.rest.warp.api.RestContext} stored in the request.
 * <p/>
 * If non exists, then new one is being created.
 *
 * @return the rest context
 */
private RestContextImpl getRestContext() {
  RestContextImpl restContext = (RestContextImpl)
    executionContext.getProperty(WarpRestCommons.WARP_REST_ATTRIBUTE);
  if (restContext == null) {
    restContext = new RestContextImpl();
    executionContext.setProperty(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
  }
  return restContext;
}
origin: arquillian/arquillian-extension-rest

  /**
   * Retrieves the {@link RestContext} stored in the request.
   * <p/>
   * If non exists, then new one is being created.
   *
   * @return the rest context
   */
  private RestContextImpl getRestContext() {

    RestContextImpl restContext = (RestContextImpl) httpRequest.getAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE);

    if (restContext == null) {

      restContext = new RestContextImpl();
      httpRequest.setAttribute(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
    }

    return restContext;
  }
}
origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-jaxrs-2.0

/**
 * Retrieves the {@link org.jboss.arquillian.extension.rest.warp.api.RestContext} stored in the request.
 * <p/>
 * If non exists, then new one is being created.
 *
 * @return the rest context
 */
private RestContextImpl getRestContext() {
  RestContextImpl restContext = (RestContextImpl)
      executionContext.getProperty(WarpRestCommons.WARP_REST_ATTRIBUTE);
  if (restContext == null) {
    restContext = new RestContextImpl();
    executionContext.setProperty(WarpRestCommons.WARP_REST_ATTRIBUTE, restContext);
  }
  return restContext;
}
org.jboss.arquillian.extension.rest.warp.spiRestContextImpl

Javadoc

The default implementation of RestContext.

Most used methods

  • <init>
    Creates new instance of RestContextImpl class.
  • setHttpRequest
    Sets the http request.
  • setHttpResponse
    Sets the http request
  • setSecurityContext
    Sets the security context.
  • setResponse
    Sets the response.

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Menu (java.awt)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
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