Class JsonSerializerJsonP
java.lang.Object
cz.metacentrum.perun.rpc.serializer.JsonSerializerJsonP
- All Implemented Interfaces:
- Serializer
JSONP serializer.
 
This serializer strips all auditing data from PerunBean objects before sending an output with exception of Authorship.class.
Please note, that many objects (especially from perun-registrar or perun-cabinet) aren't PerunBeans and contain similar properties.
By default stripped properties are: createdAt, createdBy, modifiedAt, modifiedBy, createdByUid, modifiedByUid, valueCreatedAt, valueCreatedBy, valueModifiedAt, valueModifiedBy.
- Since:
- 0.1
- Author:
- Michal Karm Babacek invalid input: '<'michal.babacek@gmail.com>
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionJsonSerializerJsonP(OutputStream out, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidSerializesPerunException.voidSerializesPerunRuntimeException.
- 
Field Details- 
CONTENT_TYPE- See Also:
 
 
- 
- 
Constructor Details- 
JsonSerializerJsonPpublic JsonSerializerJsonP(OutputStream out, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Parameters:
- out-- OutputStreamto output serialized data
- Throws:
- IOException- if an IO error occurs
 
 
- 
- 
Method Details- 
getContentType- Specified by:
- getContentTypein interface- Serializer
- Returns:
- Content-type of this serializer's output format and its encoding.
 
- 
write- Specified by:
- writein interface- Serializer
- Throws:
- IOException
 
- 
writePerunExceptionDescription copied from interface:SerializerSerializesPerunException.- Specified by:
- writePerunExceptionin interface- Serializer
- Parameters:
- pex-- PerunExceptionto serialize
- Throws:
- IOException- If an IO error occurs
 
- 
writePerunRuntimeExceptionDescription copied from interface:SerializerSerializesPerunRuntimeException.- Specified by:
- writePerunRuntimeExceptionin interface- Serializer
- Parameters:
- prex-- PerunRuntimeExceptionto serialize
- Throws:
- IOException- If an IO error occurs
 
 
-