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:
clone
in classLocationMapper
-
copyFrom
public void copyFrom(LocationMapper lmap2)
- Overrides:
copyFrom
in classLocationMapper
-
copyFrom
public void copyFrom(LocationMapperAccept lmap2)
-
altMapping
public String altMapping(String uri)
- Overrides:
altMapping
in 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:
altMapping
in 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:
addAltEntry
in classLocationMapper
-
addAltEntry
public void addAltEntry(LookUpRequest request, LookUpRequest alt)
-
addAltPrefix
@Deprecated public void addAltPrefix(String uriPrefix, String altPrefix)
Deprecated.- Overrides:
addAltPrefix
in classLocationMapper
-
listAltEntries
@Deprecated public Iterator<String> listAltEntries()
Deprecated.Iterate over all the entries registered- Overrides:
listAltEntries
in classLocationMapper
-
listAltRequests
public Iterator<LookUpRequest> listAltRequests()
-
listAltPrefixes
@Deprecated public Iterator<String> listAltPrefixes()
Deprecated.Iterate over all the prefixes registered- Overrides:
listAltPrefixes
in classLocationMapper
-
removeAltEntry
@Deprecated public void removeAltEntry(String uri)
Deprecated.- Overrides:
removeAltEntry
in classLocationMapper
-
removeAltRequest
public void removeAltRequest(LookUpRequest request)
-
removeAltPrefix
@Deprecated public void removeAltPrefix(String uriPrefix)
Deprecated.- Overrides:
removeAltPrefix
in classLocationMapper
-
getAltEntry
@Deprecated public String getAltEntry(String uri)
Deprecated.- Overrides:
getAltEntry
in classLocationMapper
-
getAltEntry
public LookUpRequest getAltEntry(LookUpRequest request)
-
getAltPrefix
@Deprecated public String getAltPrefix(String uriPrefix)
Deprecated.- Overrides:
getAltPrefix
in classLocationMapper
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classLocationMapper
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classLocationMapper
-
toString
public String toString()
- Overrides:
toString
in classLocationMapper
-
toModel
public Model toModel()
- Overrides:
toModel
in classLocationMapper
-
toModel
public void toModel(Model model)
- Overrides:
toModel
in classLocationMapper
-
-