public class HttpResourceConverter extends IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>
| Modifier and Type | Field and Description | 
|---|---|
protected com.google.common.base.Converter<String,String> | 
forward  | 
protected com.google.common.base.Converter<String,String> | 
reverse  | 
protected List<com.google.common.base.Converter<String,String>> | 
translationChain  | 
| Constructor and Description | 
|---|
HttpResourceConverter(javax.jcr.Session session,
                     javax.ws.rs.core.UriBuilder uriBuilder)
Create a new identifier converter within the given session with the given URI template 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
asString(com.hp.hpl.jena.rdf.model.Resource resource)
Convert the given resource into a plain string representation of the conversion to the resource 
 | 
protected com.hp.hpl.jena.rdf.model.Resource | 
doBackward(FedoraResource resource)  | 
protected FedoraResource | 
doForward(com.hp.hpl.jena.rdf.model.Resource resource)  | 
protected org.springframework.context.ApplicationContext | 
getApplicationContext()  | 
protected List<com.google.common.base.Converter<String,String>> | 
getTranslationChain()  | 
boolean | 
inDomain(com.hp.hpl.jena.rdf.model.Resource resource)
Check if the given resource is in the domain of this converter 
 | 
protected void | 
resetTranslationChain()  | 
com.hp.hpl.jena.rdf.model.Resource | 
toDomain(String path)
Convert a plain string to a resource appropriate to this converter 
 | 
protected List<com.google.common.base.Converter<String,String>> translationChain
public HttpResourceConverter(javax.jcr.Session session, javax.ws.rs.core.UriBuilder uriBuilder)
session - the sessionuriBuilder - the uri builderprotected FedoraResource doForward(com.hp.hpl.jena.rdf.model.Resource resource)
doForward in class com.google.common.base.Converter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>protected com.hp.hpl.jena.rdf.model.Resource doBackward(FedoraResource resource)
doBackward in class com.google.common.base.Converter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>public boolean inDomain(com.hp.hpl.jena.rdf.model.Resource resource)
IdentifierConverterinDomain in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>resource - the given resourcepublic com.hp.hpl.jena.rdf.model.Resource toDomain(String path)
IdentifierConvertertoDomain in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>path - the plain string resourcepublic String asString(com.hp.hpl.jena.rdf.model.Resource resource)
IdentifierConverterasString in class IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource,FedoraResource>resource - the given resourceprotected void resetTranslationChain()
protected List<com.google.common.base.Converter<String,String>> getTranslationChain()
protected org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2013–2016 DuraSpace, Inc.. All rights reserved.