Class SourceProvider
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.provider.AbstractProvider<javax.xml.transform.Source>
-
- org.restlet.ext.jaxrs.internal.provider.SourceProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<javax.xml.transform.Source>,javax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>
@Deprecated @Provider public class SourceProvider extends AbstractProvider<javax.xml.transform.Source>
Deprecated.Will be removed in next minor release.JAX-RS ProviderWrapper to convert aSourceto an object and vice versa.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.logging.LoggerloggerDeprecated.private javax.xml.transform.TransformerFactorytransformerFactoryDeprecated.
-
Constructor Summary
Constructors Constructor Description SourceProvider()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description longgetSize(javax.xml.transform.Source object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.Returns the size of the given objects.javax.xml.transform.SourcereadFrom(java.lang.Class<javax.xml.transform.Source> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated.protected java.lang.Class<?>supportedClass()Deprecated.Returns the class object supported by this provider.voidwriteTo(javax.xml.transform.Source source, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)Deprecated.-
Methods inherited from class org.restlet.ext.jaxrs.internal.provider.AbstractProvider
isReadable, isWriteable, logAndIOExc
-
-
-
-
Method Detail
-
getSize
public long getSize(javax.xml.transform.Source object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)Deprecated.Description copied from class:AbstractProviderReturns the size of the given objects.- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>- Specified by:
getSizein classAbstractProvider<javax.xml.transform.Source>- Parameters:
object- the object to check the size- Returns:
- the size of the object, or -1, if it is not direct readable from the object.
- See Also:
MessageBodyWriter.getSize(Object, Class, Type, Annotation[], MediaType)
-
readFrom
public javax.xml.transform.Source readFrom(java.lang.Class<javax.xml.transform.Source> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream) throws java.io.IOExceptionDeprecated.- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<javax.xml.transform.Source>- Specified by:
readFromin classAbstractProvider<javax.xml.transform.Source>genericType- The genericTypeto convert to.annotations- the annotations of the artefact to convert to- Throws:
java.io.IOException- See Also:
MessageBodyReader#readFrom(Class, Type, MediaType, Annotation[], MultivaluedMap, InputStream)
-
supportedClass
protected java.lang.Class<?> supportedClass()
Deprecated.Description copied from class:AbstractProviderReturns the class object supported by this provider.- Overrides:
supportedClassin classAbstractProvider<javax.xml.transform.Source>- Returns:
- the class object supported by this provider.
-
writeTo
public void writeTo(javax.xml.transform.Source source, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOExceptionDeprecated.- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<javax.xml.transform.Source>- Specified by:
writeToin classAbstractProvider<javax.xml.transform.Source>- Throws:
java.io.IOException- See Also:
MessageBodyWriter.writeTo(Object, Class, Type, Annotation[], MediaType, MultivaluedMap, OutputStream)
-
-