Class AbstractWriteableProvider<T>
- java.lang.Object
-
- dev.aherscu.qa.testing.utils.rest.AbstractWriteableProvider<T>
-
- Type Parameters:
T
- the concrete type of provider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<T>
- Direct Known Subclasses:
AbstractJaxbWriteableProvider
public abstract class AbstractWriteableProvider<T> extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<T>
Provides common implementation.- Author:
- aherscu
-
-
Constructor Summary
Constructors Constructor Description AbstractWriteableProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(T theInstance, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
-
-
-
Method Detail
-
isWriteable
public final boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<T>
-
getSize
public long getSize(T theInstance, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<T>
-
-