Tabnine Logo
ResponseBuilderImpl.type
Code IndexAdd Tabnine to your IDE (free)

How to use
type
method
in
org.jboss.resteasy.specimpl.ResponseBuilderImpl

Best Java code snippets using org.jboss.resteasy.specimpl.ResponseBuilderImpl.type (Showing top 4 results out of 315)

origin: resteasy/Resteasy

@Override
public Response.ResponseBuilder variant(Variant variant)
{
 if (variant == null)
 {
   type((String)null);
   language((String)null);
   metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
   return this;
 }
 type(variant.getMediaType());
 language(variant.getLanguage());
 if (variant.getEncoding() != null) metadata.putSingle(HttpHeaderNames.CONTENT_ENCODING, variant.getEncoding());
 else metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
 return this;
}
origin: org.jboss.resteasy/resteasy-jaxrs-20

@Override
public Response.ResponseBuilder variant(Variant variant)
{
 if (variant == null)
 {
   type((String)null);
   language((String)null);
   metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
   return this;
 }
 type(variant.getMediaType());
 language(variant.getLanguage());
 if (variant.getEncoding() != null) metadata.putSingle(HttpHeaderNames.CONTENT_ENCODING, variant.getEncoding());
 else metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
 return this;
}
origin: org.jboss.resteasy/resteasy-core

@Override
public Response.ResponseBuilder variant(Variant variant)
{
 if (variant == null)
 {
   type((String)null);
   language((String)null);
   metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
   return this;
 }
 type(variant.getMediaType());
 language(variant.getLanguage());
 if (variant.getEncoding() != null) metadata.putSingle(HttpHeaderNames.CONTENT_ENCODING, variant.getEncoding());
 else metadata.remove(HttpHeaderNames.CONTENT_ENCODING);
 return this;
}
origin: labsai/EDDI

public static NoLogWebApplicationException createConflictException(String containerUri, IResourceStore.IResourceId currentId) {
  URI resourceUri = RestUtilities.createURI(containerUri, currentId.getId(), versionQueryParam, currentId.getVersion());
  ResponseBuilderImpl builder = new ResponseBuilderImpl();
  builder.status(Response.Status.CONFLICT);
  builder.entity(resourceUri.toString());
  builder.type(MediaType.TEXT_PLAIN);
  return new NoLogWebApplicationException(builder.build());
}
org.jboss.resteasy.specimplResponseBuilderImpltype

Popular methods of ResponseBuilderImpl

  • <init>
  • status
  • allow
  • createVaryHeader
  • getDateFormatRFC822
  • language
  • tag
  • variants
  • build
  • entity

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for WebStorm
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