@Component public class JsonParser extends Object
| Constructor and Description |
|---|
JsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
parseEtag(byte[] json) |
String |
parseId(byte[] json)
Parses the
id of a JSON representation of a JMS message emitted by Fedora. |
Collection<String> |
parseRepositoryUris(byte[] json)
Parses the
Constants.LdpRel.LDP_CONTAINS relationship from JSON representations of LDP containers in Fedora. |
@Autowired public JsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public String parseId(byte[] json)
id of a JSON representation of a JMS message emitted by Fedora.json - JSON payload of a JMS message emitted by Fedora that may contain an idid, or nullRuntimeException - if json cannot be parsedpublic String parseEtag(byte[] json)
public Collection<String> parseRepositoryUris(byte[] json)
Constants.LdpRel.LDP_CONTAINS relationship from JSON representations of LDP containers in Fedora.json - JSON representation of a Fedora resourceLDP_CONTAINS relationship, or an empty CollectionRuntimeException - if json cannot be parsedCopyright © 2018. All rights reserved.