Tabnine Logo
HttpResponseImpl.setStatusCode
Code IndexAdd Tabnine to your IDE (free)

How to use
setStatusCode
method
in
org.jboss.arquillian.extension.rest.warp.spi.HttpResponseImpl

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

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

/**
 * Builds the http response.
 *
 * @return the http response
 */
@SuppressWarnings("unchecked")
private HttpResponse buildHttpResponse() {
  HttpResponseImpl response = new HttpResponseImpl();
  if (this.response != null) {
    response.setContentType((String) responseMessage.get(Message.CONTENT_TYPE));
    response.setStatusCode(this.response.getStatus());
    response.setEntity(this.response.getEntity());
    response.setHeaders(getHeaders((Map<String, List<Object>>)
        this.responseMessage.get(Message.PROTOCOL_HEADERS)));
  }
  return response;
}
origin: arquillian/arquillian-extension-rest

/**
 * Builds the http response.
 *
 * @return the http response
 */
@SuppressWarnings("unchecked")
private HttpResponse buildHttpResponse() {
  HttpResponseImpl response = new HttpResponseImpl();
  if (this.response != null) {
    response.setContentType((String) responseMessage.get(Message.CONTENT_TYPE));
    response.setStatusCode(this.response.getStatus());
    response.setEntity(this.response.getEntity());
    response.setHeaders(getHeaders((Map<String, List<Object>>)
      this.responseMessage.get(Message.PROTOCOL_HEADERS)));
  }
  return response;
}
origin: org.jboss.arquillian.extension/arquillian-rest-warp-impl-jaxrs-2.0

/**
 * Builds the {@link HttpResponse}.
 *
 * @return the {@link HttpResponse}
 */
private HttpResponse buildHttpResponse() {
  HttpResponseImpl httpResponse = new HttpResponseImpl();
  if (containerResponseContext != null) {
    httpResponse.setStatusCode(containerResponseContext.getStatus());
    httpResponse.setHeaders(containerResponseContext.getHeaders());
    httpResponse.setContentType(getMediaTypeName(containerResponseContext.getMediaType()));
    httpResponse.setEntity(responseEntity);
  }
  return httpResponse;
}
origin: arquillian/arquillian-extension-rest

/**
 * Builds the {@link HttpResponse}.
 *
 * @return the {@link HttpResponse}
 */
private HttpResponse buildHttpResponse() {
  HttpResponseImpl httpResponse = new HttpResponseImpl();
  if (containerResponseContext != null) {
    httpResponse.setStatusCode(containerResponseContext.getStatus());
    httpResponse.setHeaders(containerResponseContext.getHeaders());
    httpResponse.setContentType(getMediaTypeName(containerResponseContext.getMediaType()));
    httpResponse.setEntity(responseEntity);
  }
  return httpResponse;
}
origin: arquillian/arquillian-extension-rest

/**
 * Builds the {@link HttpResponse}.
 *
 * @return the {@link HttpResponse}
 */
private HttpResponse buildHttpResponse() {
  HttpResponseImpl response = new HttpResponseImpl();
  if (serverResponse != null) {
    response.setContentType(getMediaTypeName(responseMediaType));
    response.setStatusCode(serverResponse.getStatus());
    response.setEntity(serverResponse.getEntity());
    response.setHeaders(serverResponse.getMetadata());
  }
  return response;
}
origin: arquillian/arquillian-extension-rest

/**
 * Builds the {@link HttpResponse}.
 *
 * @return the {@link HttpResponse}
 */
private HttpResponse buildHttpResponse() {
  HttpResponseImpl response = new HttpResponseImpl();
  if (containerResponse != null) {
    response.setContentType(getMediaTypeName(containerResponse.getMediaType()));
    response.setStatusCode(containerResponse.getStatus());
    response.setEntity(containerResponse.getEntity());
    response.setHeaders(containerResponse.getHttpHeaders());
  }
  return response;
}
org.jboss.arquillian.extension.rest.warp.spiHttpResponseImplsetStatusCode

Javadoc

Sets the status code.

Popular methods of HttpResponseImpl

  • <init>
    Creates new instance of HttpResponseImpl class.
  • setContentType
    Sets the content type.
  • setEntity
    Sets the response entity.
  • setHeaders
    Sets the http headers.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Github Copilot 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