Class LocationMapperAccept
- java.lang.Object
-
- org.apache.jena.riot.system.stream.LocationMapper
-
- fr.mines_stetienne.ci.sparql_generate.stream.LocationMapperAccept
-
public class LocationMapperAccept extends LocationMapper
Extends the LocationMapper class with content negociation capabilities.- Author:
- Maxime Lefrançois
-
-
Constructor Summary
Constructors Constructor Description LocationMapperAccept()Create a LocationMapperAccept with no mapping yetLocationMapperAccept(Model configurationModel)
-
Method Summary
-
Methods inherited from class org.apache.jena.riot.system.stream.LocationMapper
containsMapping
-
-
-
-
Constructor Detail
-
LocationMapperAccept
public LocationMapperAccept()
Create a LocationMapperAccept with no mapping yet
-
LocationMapperAccept
public LocationMapperAccept(Model configurationModel)
-
-
Method Detail
-
clone
public LocationMapperAccept clone()
Deep copy of location and prefix maps- Overrides:
clonein classLocationMapper
-
copyFrom
public void copyFrom(LocationMapper lmap2)
- Overrides:
copyFromin classLocationMapper
-
copyFrom
public void copyFrom(LocationMapperAccept lmap2)
-
altMapping
public String altMapping(String uri)
- Overrides:
altMappingin classLocationMapper
-
altRequest
public LookUpRequest altRequest(String uri)
-
altRequest
public LookUpRequest altRequest(LookUpRequest request)
-
altMapping
public String altMapping(String uri, String otherwise)
Apply mappings: first try for an exact alternative location, then try to remap by prefix, finally, try the special case of filenames in a specific base directory.- Overrides:
altMappingin classLocationMapper- Parameters:
uri-otherwise-- Returns:
- The alternative location choosen
-
altRequest
public LookUpRequest altRequest(String uri, String otherwise)
-
altRequest
public LookUpRequest altRequest(LookUpRequest request, LookUpRequest otherwise)
-
addAltEntry
public void addAltEntry(String uri, String alt)
- Overrides:
addAltEntryin classLocationMapper
-
addAltEntry
public void addAltEntry(LookUpRequest request, LookUpRequest alt)
-
addAltPrefix
@Deprecated public void addAltPrefix(String uriPrefix, String altPrefix)
Deprecated.- Overrides:
addAltPrefixin classLocationMapper
-
listAltEntries
@Deprecated public Iterator<String> listAltEntries()
Deprecated.Iterate over all the entries registered- Overrides:
listAltEntriesin classLocationMapper
-
listAltRequests
public Iterator<LookUpRequest> listAltRequests()
-
listAltPrefixes
@Deprecated public Iterator<String> listAltPrefixes()
Deprecated.Iterate over all the prefixes registered- Overrides:
listAltPrefixesin classLocationMapper
-
removeAltEntry
@Deprecated public void removeAltEntry(String uri)
Deprecated.- Overrides:
removeAltEntryin classLocationMapper
-
removeAltRequest
public void removeAltRequest(LookUpRequest request)
-
removeAltPrefix
@Deprecated public void removeAltPrefix(String uriPrefix)
Deprecated.- Overrides:
removeAltPrefixin classLocationMapper
-
getAltEntry
@Deprecated public String getAltEntry(String uri)
Deprecated.- Overrides:
getAltEntryin classLocationMapper
-
getAltEntry
public LookUpRequest getAltEntry(LookUpRequest request)
-
getAltPrefix
@Deprecated public String getAltPrefix(String uriPrefix)
Deprecated.- Overrides:
getAltPrefixin classLocationMapper
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLocationMapper
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classLocationMapper
-
toString
public String toString()
- Overrides:
toStringin classLocationMapper
-
toModel
public Model toModel()
- Overrides:
toModelin classLocationMapper
-
toModel
public void toModel(Model model)
- Overrides:
toModelin classLocationMapper
-
-