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) |
String |
encodeBulkResponseData(BulkResponseData bulkResponseData) |
void |
encodeComplexAttribute(ComplexAttribute complexAttribute,
org.json.JSONObject rootObject) |
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) |
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 void encodeComplexAttribute(ComplexAttribute complexAttribute, org.json.JSONObject rootObject) throws org.json.JSONException
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
InternalErrorExceptionCopyright © 2018 WSO2. All rights reserved.