congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Reference (javax.naming)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 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