public class JSONEncoder extends Object
| Constructor and Description |
|---|
JSONEncoder() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildGroupResourceTypeJsonBody()
Build the group resource type json representation.
|
String |
buildServiceProviderConfigJsonBody(HashMap<String,Object> config) |
String |
buildUserResourceTypeJsonBody() |
void |
encodeArrayOfValues(String arrayName,
Object[] arrayValues,
org.json.JSONObject rootObject) |
org.json.JSONObject |
encodeBasicAttributeSchema(Attribute attribute)
Encode the attribute schema and return the json object.
|
String |
encodeBulkResponseData(BulkResponseData bulkResponseData)
Encode given bulkResponseData object and return the encoded string.
|
void |
encodeComplexAttribute(ComplexAttribute complexAttribute,
org.json.JSONObject rootObject) |
org.json.JSONObject |
encodeComplexAttributeSchema(ComplexAttribute complexAttribute)
Encode the complex attribute schema and return the json object.
|
protected void |
encodeComplexAttributeValue(ComplexAttribute attributeValue,
org.json.JSONArray jsonArray) |
void |
encodeMultiValuedAttribute(MultiValuedAttribute multiValuedAttribute,
org.json.JSONObject jsonObject) |
String |
encodeSCIMException(AbstractCharonException exception) |
String |
encodeSCIMObject(SCIMObject scimObject) |
void |
encodeSimpleAttribute(SimpleAttribute attribute,
org.json.JSONObject rootObject) |
org.json.JSONObject |
encodeSimpleAttributeSchema(SimpleAttribute simpleAttribute)
Encode the simple attribute and returns the json object.
|
protected void |
encodeSimpleAttributeValue(SimpleAttribute attributeValue,
org.json.JSONArray jsonArray) |
String |
getFormat() |
org.json.JSONObject |
getSCIMObjectAsJSONObject(SCIMObject scimObject) |
public String getFormat()
public String encodeSCIMObject(SCIMObject scimObject) throws CharonException
CharonExceptionpublic String encodeSCIMException(AbstractCharonException exception)
public org.json.JSONObject getSCIMObjectAsJSONObject(SCIMObject scimObject) throws CharonException
CharonExceptionpublic void encodeArrayOfValues(String arrayName, Object[] arrayValues, org.json.JSONObject rootObject) throws org.json.JSONException
org.json.JSONExceptionpublic void encodeSimpleAttribute(SimpleAttribute attribute, org.json.JSONObject rootObject) throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONObject encodeSimpleAttributeSchema(SimpleAttribute simpleAttribute) throws org.json.JSONException
simpleAttribute - org.json.JSONExceptionpublic org.json.JSONObject encodeBasicAttributeSchema(Attribute attribute) throws org.json.JSONException
attribute - org.json.JSONExceptionpublic void encodeComplexAttribute(ComplexAttribute complexAttribute, org.json.JSONObject rootObject) throws org.json.JSONException
org.json.JSONExceptionpublic org.json.JSONObject encodeComplexAttributeSchema(ComplexAttribute complexAttribute) throws org.json.JSONException
complexAttribute - org.json.JSONExceptionprotected void encodeSimpleAttributeValue(SimpleAttribute attributeValue, org.json.JSONArray jsonArray) throws org.json.JSONException
org.json.JSONExceptionpublic void encodeMultiValuedAttribute(MultiValuedAttribute multiValuedAttribute, org.json.JSONObject jsonObject) throws org.json.JSONException
org.json.JSONExceptionprotected void encodeComplexAttributeValue(ComplexAttribute attributeValue, org.json.JSONArray jsonArray) throws org.json.JSONException
org.json.JSONExceptionpublic String buildServiceProviderConfigJsonBody(HashMap<String,Object> config) throws org.json.JSONException
org.json.JSONExceptionpublic String buildUserResourceTypeJsonBody() throws org.json.JSONException
org.json.JSONExceptionpublic String buildGroupResourceTypeJsonBody() throws org.json.JSONException
org.json.JSONExceptionpublic String encodeBulkResponseData(BulkResponseData bulkResponseData) throws InternalErrorException
bulkResponseData - Bulk response data.InternalErrorException - InternalErrorException.Copyright © 2021 WSO2. All rights reserved.