org.glassfish.jersey.server.model
Class ResourceMethodConfig

java.lang.Object
  extended by org.glassfish.jersey.model.internal.DefaultConfig
      extended by org.glassfish.jersey.server.model.ResourceMethodConfig
All Implemented Interfaces:
Configurable

public class ResourceMethodConfig
extends DefaultConfig

Default config for resource methods. Only allowed contracts for this config are:

  • ContainerRequestFilter
  • ContainerResponseFilter
  • ReaderInterceptor
  • WriterInterceptor
  • Author:
    Michal Gajdos (michal.gajdos at oracle.com)

    Constructor Summary
    ResourceMethodConfig(java.util.Map<java.lang.String,java.lang.Object> properties)
               
     
    Method Summary
    protected  java.util.Set<java.lang.Class<?>> checkContracts(java.lang.Class<?> providerClass, java.util.Set<java.lang.Class<?>> allProviderContracts, java.util.Set<java.lang.Class<?>> bindingContracts)
              Checks whether a set of contracts is supported by this configuration.
     
    Methods inherited from class org.glassfish.jersey.model.internal.DefaultConfig
    equals, getFeatureBag, getFeatures, getProperties, getProperty, getProviderBag, getProviderClasses, getProviderInstances, hashCode, isEnabled, lock, register, register, register, register, register, register, register, register, setProperties, setProperty
     
    Methods inherited from class java.lang.Object
    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    ResourceMethodConfig

    public ResourceMethodConfig(java.util.Map<java.lang.String,java.lang.Object> properties)
    Method Detail

    checkContracts

    protected java.util.Set<java.lang.Class<?>> checkContracts(java.lang.Class<?> providerClass,
                                                               java.util.Set<java.lang.Class<?>> allProviderContracts,
                                                               java.util.Set<java.lang.Class<?>> bindingContracts)
    Description copied from class: DefaultConfig
    Checks whether a set of contracts is supported by this configuration. Method should log a warning message if a certain contract is not allowed by this configuration and it returns (modified) set of allowed contracts.

    Overrides:
    checkContracts in class DefaultConfig
    bindingContracts - set of contracts to perform check on.
    Returns:
    set of contracts allowed by this configuration.


    Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.