Interface ProviderWrapper
-
- All Known Implementing Classes:
AbstractProviderWrapper,PerRequestProviderWrapper,SingletonProvider
@Deprecated public interface ProviderWrapperDeprecated.Will be removed in next minor release.Wraps a JAX-RS provider, see chapter 4 of JAX-RS specification.- See Also:
Provider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object otherProvider)Deprecated.java.lang.StringgetClassName()Deprecated.java.util.List<MediaType>getConsumedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.lang.Class<?>getExcMapperType()Deprecated.Beispiele: ExceptionMapper<IllegalArgumentException> -> IllegalArgumentException MessageBodyReader<Integer> -> IntegerContextResolvergetInitializedCtxResolver()Deprecated.javax.ws.rs.ext.ExceptionMapper<? extends java.lang.Throwable>getInitializedExcMapper()Deprecated.MessageBodyReadergetInitializedReader()Deprecated.MessageBodyWritergetInitializedWriter()Deprecated.java.util.List<MediaType>getProducedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.inthashCode()Deprecated.voidinitAtAppStartUp(ThreadLocalizedContext tlContext, javax.ws.rs.ext.Providers allProviders, ExtensionBackwardMapping extensionBackwardMapping)Deprecated.Initializes this entity provider at start up.booleanisContextResolver()Deprecated.Returns true, if this ProviderWrapper is also aContextResolver, otherwise false.booleanisExceptionMapper()Deprecated.Checks, if this provider represents anExceptionMapper.booleanisReader()Deprecated.Returns true, if this ProviderWrapper is also aMessageBodyReader, otherwise false.booleanisWriter()Deprecated.Returns true, if this ProviderWrapper is also aMessageBodyWriter, otherwise false.booleansupportsRead(MediaType mediaType)Deprecated.Checks, if this MessageBodyReader supports the given MediaType.booleansupportsWrite(java.lang.Iterable<MediaType> mediaTypes)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.booleansupportsWrite(javax.ws.rs.core.MediaType requested)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.booleansupportsWrite(MediaType requested)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.
-
-
-
Method Detail
-
equals
boolean equals(java.lang.Object otherProvider)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
getClassName
java.lang.String getClassName()
Deprecated.- Returns:
- the JAX-RS provider class name
-
getConsumedMimes
java.util.List<MediaType> getConsumedMimes()
Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.- Returns:
- List of produced
MediaTypes.
-
getExcMapperType
java.lang.Class<?> getExcMapperType()
Deprecated.Beispiele:- ExceptionMapper<IllegalArgumentException> -> IllegalArgumentException
- MessageBodyReader<Integer> -> Integer
- Returns:
- the type the wrapped exception mapper could map.
-
getInitializedCtxResolver
ContextResolver getInitializedCtxResolver() throws ProviderNotInitializableException
Deprecated.- Returns:
- an initialized
ContextResolver - Throws:
ProviderNotInitializableException
-
getInitializedExcMapper
javax.ws.rs.ext.ExceptionMapper<? extends java.lang.Throwable> getInitializedExcMapper() throws ProviderNotInitializableExceptionDeprecated.- Returns:
- the initialized exception mapper
- Throws:
ProviderNotInitializableException
-
getInitializedReader
MessageBodyReader getInitializedReader() throws ProviderNotInitializableException
Deprecated.- Returns:
- an initialized reader
- Throws:
ProviderNotInitializableException
-
getInitializedWriter
MessageBodyWriter getInitializedWriter() throws ProviderNotInitializableException
Deprecated.- Returns:
- an initialized writer
- Throws:
ProviderNotInitializableException
-
getProducedMimes
java.util.List<MediaType> getProducedMimes()
Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.- Returns:
- List of produced
MediaTypes. If the entity provider is not annotated with @Produces, '*/*' is returned.
-
hashCode
int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
initAtAppStartUp
void initAtAppStartUp(ThreadLocalizedContext tlContext, javax.ws.rs.ext.Providers allProviders, ExtensionBackwardMapping extensionBackwardMapping) throws InjectException, java.lang.reflect.InvocationTargetException, IllegalTypeException
Deprecated.Initializes this entity provider at start up. If the life cycle is instantiation per-request, nothing happens in this method.- Parameters:
tlContext-allProviders-extensionBackwardMapping-- Throws:
InjectExceptionjava.lang.reflect.InvocationTargetExceptionIllegalTypeException
-
isContextResolver
boolean isContextResolver()
Deprecated.Returns true, if this ProviderWrapper is also aContextResolver, otherwise false.- Returns:
- true, if this ProviderWrapper is also a
ContextResolver, otherwise false.
-
isExceptionMapper
boolean isExceptionMapper()
Deprecated.Checks, if this provider represents anExceptionMapper.- Returns:
- true, if this provider is an
ExceptionMapper, or false if not.
-
isReader
boolean isReader()
Deprecated.Returns true, if this ProviderWrapper is also aMessageBodyReader, otherwise false.- Returns:
- true, if this ProviderWrapper is also a
MessageBodyReader, otherwise false.
-
isWriter
boolean isWriter()
Deprecated.Returns true, if this ProviderWrapper is also aMessageBodyWriter, otherwise false.- Returns:
- true, if this ProviderWrapper is also a
MessageBodyWriter, otherwise false.
-
supportsRead
boolean supportsRead(MediaType mediaType)
Deprecated.Checks, if this MessageBodyReader supports the given MediaType.- Parameters:
mediaType-- Returns:
- true, if the wrapped
MessageBodyReadersupports the read for the given media type.
-
supportsWrite
boolean supportsWrite(java.lang.Iterable<MediaType> mediaTypes)
Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.
-
supportsWrite
boolean supportsWrite(javax.ws.rs.core.MediaType requested)
Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.
-
-