Class JsonSerializerJsonLite
java.lang.Object
cz.metacentrum.perun.rpc.serializer.JsonSerializerJsonLite
- All Implemented Interfaces:
Serializer
JSON lite serializer which strips auditing data from Perun beans.
- Author:
- Pavel Zlámal invalid input: '<'zlamal@cesnet.cz>, Michal Voců invalid input: '<'vocu@cesnet.cz>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
SerializesPerunException
.void
SerializesPerunRuntimeException
.
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
JsonSerializerJsonLite
- Parameters:
out
-OutputStream
to output serialized data- Throws:
IOException
- if an IO error occurs
-
-
Method Details
-
getContentType
- Specified by:
getContentType
in interfaceSerializer
- Returns:
- Content-type of this serializer's output format and its encoding.
-
write
- Specified by:
write
in interfaceSerializer
- Throws:
IOException
-
writePerunException
Description copied from interface:Serializer
SerializesPerunException
.- Specified by:
writePerunException
in interfaceSerializer
- Parameters:
pex
-PerunException
to serialize- Throws:
IOException
- If an IO error occurs
-
writePerunRuntimeException
Description copied from interface:Serializer
SerializesPerunRuntimeException
.- Specified by:
writePerunRuntimeException
in interfaceSerializer
- Parameters:
prex
-PerunRuntimeException
to serialize- Throws:
IOException
- If an IO error occurs
-