Package com.soffid.iam.json
Class ConfigurableJohnzonProvider<T>
- java.lang.Object
-
- com.soffid.iam.json.ConfigurableJohnzonProvider<T>
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>
,javax.ws.rs.ext.MessageBodyWriter<T>
@Provider @Produces({"application/scim+json","application/json"}) @Consumes({"application/scim+json","application/json"}) public class ConfigurableJohnzonProvider<T> extends Object implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>
-
-
Constructor Summary
Constructors Constructor Description ConfigurableJohnzonProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isReadable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
boolean
isWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
T
readFrom(Class<T> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
void
setAccessMode(org.apache.johnzon.mapper.access.AccessMode mode)
void
setAccessModeName(String mode)
void
setAttributeOrder(Comparator<String> attributeOrder)
void
setBufferSize(int bufferSize)
void
setBufferStrategy(String bufferStrategy)
void
setDoCloseOnStreams(boolean doCloseOnStreams)
void
setEncoding(String encoding)
void
setEnforceQuoteString(boolean val)
void
setGeneratorFactory(javax.json.stream.JsonGeneratorFactory generatorFactory)
void
setIgnoreFieldsForType(String mapping)
void
setIgnores(String ignores)
void
setMaxSize(int size)
void
setPretty(boolean pretty)
void
setPrimitiveConverters(boolean val)
void
setReadAttributeBeforeWrite(boolean rabw)
void
setReaderFactory(javax.json.JsonReaderFactory readerFactory)
void
setSkipEmptyArray(boolean skipEmptyArray)
void
setSkipNull(boolean skipNull)
void
setSupportConstructors(boolean supportConstructors)
void
setSupportGetterForCollections(boolean supportGetterForCollections)
void
setSupportHiddenAccess(boolean supportHiddenAccess)
void
setSupportsComments(boolean supportsComments)
void
setTreatByteArrayAsBase64(boolean treatByteArrayAsBase64)
void
setVersion(int version)
void
writeTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<T>
-
readFrom
public T readFrom(Class<T> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<T>
- Throws:
IOException
-
getSize
public long getSize(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSize
in interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
isWriteable
public boolean isWriteable(Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteable
in interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
writeTo
public void writeTo(T t, Class<?> rawType, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
- Specified by:
writeTo
in interfacejavax.ws.rs.ext.MessageBodyWriter<T>
- Throws:
IOException
-
setIgnoreFieldsForType
public void setIgnoreFieldsForType(String mapping)
-
setSupportConstructors
public void setSupportConstructors(boolean supportConstructors)
-
setPretty
public void setPretty(boolean pretty)
-
setSupportGetterForCollections
public void setSupportGetterForCollections(boolean supportGetterForCollections)
-
setSupportsComments
public void setSupportsComments(boolean supportsComments)
-
setIgnores
public void setIgnores(String ignores)
-
setAccessMode
public void setAccessMode(org.apache.johnzon.mapper.access.AccessMode mode)
-
setAccessModeName
public void setAccessModeName(String mode)
-
setSupportHiddenAccess
public void setSupportHiddenAccess(boolean supportHiddenAccess)
-
setAttributeOrder
public void setAttributeOrder(Comparator<String> attributeOrder)
-
setReaderFactory
public void setReaderFactory(javax.json.JsonReaderFactory readerFactory)
-
setGeneratorFactory
public void setGeneratorFactory(javax.json.stream.JsonGeneratorFactory generatorFactory)
-
setDoCloseOnStreams
public void setDoCloseOnStreams(boolean doCloseOnStreams)
-
setVersion
public void setVersion(int version)
-
setSkipNull
public void setSkipNull(boolean skipNull)
-
setSkipEmptyArray
public void setSkipEmptyArray(boolean skipEmptyArray)
-
setBufferSize
public void setBufferSize(int bufferSize)
-
setBufferStrategy
public void setBufferStrategy(String bufferStrategy)
-
setMaxSize
public void setMaxSize(int size)
-
setTreatByteArrayAsBase64
public void setTreatByteArrayAsBase64(boolean treatByteArrayAsBase64)
-
setEncoding
public void setEncoding(String encoding)
-
setReadAttributeBeforeWrite
public void setReadAttributeBeforeWrite(boolean rabw)
-
setEnforceQuoteString
public void setEnforceQuoteString(boolean val)
-
setPrimitiveConverters
public void setPrimitiveConverters(boolean val)
-
-