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

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JPanel (javax.swing)
  • 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