Class MultiTypedProvider
java.lang.Object
org.eclipse.microprofile.rest.client.tck.providers.MultiTypedProvider
- All Implemented Interfaces:
jakarta.ws.rs.client.ClientRequestFilter,jakarta.ws.rs.client.ClientResponseFilter,jakarta.ws.rs.ext.MessageBodyReader<Object>,jakarta.ws.rs.ext.MessageBodyWriter<Object>,jakarta.ws.rs.ext.ParamConverterProvider,jakarta.ws.rs.ext.ReaderInterceptor,jakarta.ws.rs.ext.WriterInterceptor,ResponseExceptionMapper<Throwable>
public class MultiTypedProvider
extends Object
implements jakarta.ws.rs.client.ClientRequestFilter, jakarta.ws.rs.client.ClientResponseFilter, jakarta.ws.rs.ext.MessageBodyReader<Object>, jakarta.ws.rs.ext.MessageBodyWriter<Object>, jakarta.ws.rs.ext.ReaderInterceptor, jakarta.ws.rs.ext.WriterInterceptor, ResponseExceptionMapper<Throwable>, jakarta.ws.rs.ext.ParamConverterProvider
-
Field Summary
Fields inherited from interface org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context) voidaroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) voidfilter(jakarta.ws.rs.client.ClientRequestContext requestContext) voidfilter(jakarta.ws.rs.client.ClientRequestContext requestContext, jakarta.ws.rs.client.ClientResponseContext responseContext) <T> jakarta.ws.rs.ext.ParamConverter<T>getConverter(Class<T> rawType, Type genericType, Annotation[] annotations) longgetSize(Object o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) toThrowable(jakarta.ws.rs.core.Response response) voidwriteTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.microprofile.rest.client.ext.ResponseExceptionMapper
getPriority, handles
-
Constructor Details
-
MultiTypedProvider
public MultiTypedProvider()
-
-
Method Details
-
filter
- Specified by:
filterin interfacejakarta.ws.rs.client.ClientRequestFilter- Throws:
IOException
-
filter
public void filter(jakarta.ws.rs.client.ClientRequestContext requestContext, jakarta.ws.rs.client.ClientResponseContext responseContext) throws IOException - Specified by:
filterin interfacejakarta.ws.rs.client.ClientResponseFilter- Throws:
IOException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfacejakarta.ws.rs.ext.MessageBodyReader<Object>
-
readFrom
public Object readFrom(Class<Object> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<Object>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
-
getSize
public long getSize(Object o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>
-
writeTo
public void writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<Object>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
getConverter
public <T> jakarta.ws.rs.ext.ParamConverter<T> getConverter(Class<T> rawType, Type genericType, Annotation[] annotations) - Specified by:
getConverterin interfacejakarta.ws.rs.ext.ParamConverterProvider
-
aroundReadFrom
public Object aroundReadFrom(jakarta.ws.rs.ext.ReaderInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
aroundReadFromin interfacejakarta.ws.rs.ext.ReaderInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
aroundWriteTo
public void aroundWriteTo(jakarta.ws.rs.ext.WriterInterceptorContext context) throws IOException, jakarta.ws.rs.WebApplicationException - Specified by:
aroundWriteToin interfacejakarta.ws.rs.ext.WriterInterceptor- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
toThrowable
- Specified by:
toThrowablein interfaceResponseExceptionMapper<Throwable>
-