congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EncodingFilter.enableFor
Code IndexAdd Tabnine to your IDE (free)

How to use
enableFor
method
in
org.glassfish.jersey.server.filter.EncodingFilter

Best Java code snippets using org.glassfish.jersey.server.filter.EncodingFilter.enableFor (Showing top 5 results out of 315)

origin: apache/nifi

EncodingFilter.enableFor(this, GZipEncoder.class);
origin: cubedb/cubedb

protected static void registerStuff(ResourceConfig rConfig) {
 rConfig.register(AccessOriginFilter.class);
 /*
  * rConfig.register(ErrorMapper.class);
  * rConfig.register(PreFilter.class);
  * rConfig.register(PostFilter.class);
  */
 rConfig.register(GenericExceptionMapper.class);
 rConfig.register(org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainerProvider.class);
 EncodingFilter.enableFor(rConfig, GZipEncoder.class);
 rConfig.register(JsonIteratorConverter.class);
}
origin: org.graylog2/graylog2-shared

EncodingFilter.enableFor(rc, GZipEncoder.class);
origin: com.sflpro.identity/identity-api-facade

  public GenericJerseyConfig() {

    // Configurations
    register(MultiPartFeature.class);
    register(JacksonJsonProvider.class);
    register(ValidationFeature.class);

    // Exception mappers
    register(ApplicationExceptionMapper.class);
    register(DtoValidationExceptionMapper.class);
    register(JsonParseExceptionMapper.class);
    register(JsonMappingExceptionMapper.class);

    // Swagger specific settings
    register(ApiListingResource.class);
    register(SwaggerSerializers.class);
    register(CorsFilter.class);

    property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, false);
    property(CommonProperties.FEATURE_AUTO_DISCOVERY_DISABLE, true);

    EncodingFilter.enableFor(this, GZipEncoder.class);
  }
}
origin: com.moodysalem.java/jaxrs-lib

public BaseApplication() {
  // register the things that are typically used by a JAX-RS application
  // allow accepting localdate and localdatetime as query parameters, etc.
  register(JodaTimeParamConverterProvider.class);
  // allow parsing and writing localdate and localdatetime with jackson
  register(ObjectMapperContextResolver.class);
  // json parsing
  register(JacksonFeature.class);
  // template engine
  property(FreemarkerMvcFeature.CACHE_TEMPLATES, true);
  register(FreemarkerMvcFeature.class);
  // send CORS headers
  if (allowCORS()) {
    register(CORSFilter.class);
  }
  // force HTTPS behind ELB
  if (forceLoadBalancerHTTPS()) {
    register(ElasticLoadBalancerHTTPSFilter.class);
  }
  // custom exception handler
  register(RequestProcessingExceptionMapper.class);
  // map WebApplicationExceptions to the appropriate JSON structure
  register(WebApplicationExceptionMapper.class);
  EncodingFilter.enableFor(this, GZipEncoder.class);
}
org.glassfish.jersey.server.filterEncodingFilterenableFor

Javadoc

Enables this filter along with the provided org.glassfish.jersey.spi.ContentEncoderfor the supplied ResourceConfig.

Popular methods of EncodingFilter

  • getSupportedEncodings
    Returns a (lexically) sorted set of supported encodings.

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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