public class JaxrsProviders extends Object implements javax.ws.rs.ext.Providers
Providers
contract.Modifier and Type | Class and Description |
---|---|
static class |
JaxrsProviders.ProvidersConfigurator
Configurator which initializes and registers
Providers instance into InjectionManager and
BootstrapBag . |
Constructor and Description |
---|
JaxrsProviders(javax.inject.Provider<MessageBodyWorkers> workers,
javax.inject.Provider<ContextResolvers> resolvers,
javax.inject.Provider<ExceptionMappers> mappers) |
Modifier and Type | Method and Description |
---|---|
<T> javax.ws.rs.ext.ContextResolver<T> |
getContextResolver(Class<T> contextType,
javax.ws.rs.core.MediaType mediaType) |
<T extends Throwable> |
getExceptionMapper(Class<T> type) |
<T> javax.ws.rs.ext.MessageBodyReader<T> |
getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
<T> javax.ws.rs.ext.MessageBodyWriter<T> |
getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType) |
@Inject public JaxrsProviders(@Context javax.inject.Provider<MessageBodyWorkers> workers, @Context javax.inject.Provider<ContextResolvers> resolvers, @Context javax.inject.Provider<ExceptionMappers> mappers)
public <T> javax.ws.rs.ext.MessageBodyReader<T> getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getMessageBodyReader
in interface javax.ws.rs.ext.Providers
public <T> javax.ws.rs.ext.MessageBodyWriter<T> getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
getMessageBodyWriter
in interface javax.ws.rs.ext.Providers
public <T extends Throwable> javax.ws.rs.ext.ExceptionMapper<T> getExceptionMapper(Class<T> type)
getExceptionMapper
in interface javax.ws.rs.ext.Providers
public <T> javax.ws.rs.ext.ContextResolver<T> getContextResolver(Class<T> contextType, javax.ws.rs.core.MediaType mediaType)
getContextResolver
in interface javax.ws.rs.ext.Providers
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.