16 #ifndef ZORBA_URI_RESOLVERS_API_H
17 #define ZORBA_URI_RESOLVERS_API_H
23 #include <zorba/config.h>
66 virtual void destroy()
const = 0;
92 bool aIsStreamSeekable =
false);
97 virtual std::istream* getStream() = 0;
106 virtual bool isStreamSeekable()
const = 0;
138 virtual Kind getKind()
const = 0;
218 EntityData const* aEntityData, std::vector<zorba::String>& oUris)
251 virtual Kind mapperKind();
286 addMapping(
const String& aUri,
const String& aMappedUri);
288 virtual Kind mapperKind();
291 EntityData const* aEntityData, std::vector<zorba::String>& oUris);
297 typedef std::map<String, String> Mapping_t;
298 typedef Mapping_t::const_iterator MappingIter_t;
299 Mapping_t theMappings;
Kind
enum listing the kinds of entities that may be represented by URIs, and hence may be looked up via th...
Interface for URI mapping.
void(* StreamReleaser)(std::istream *)
The class containing data which may be of use to URIMappers and URLResolvers when mapping/resolving a...
Kind
enum defining legal return values for mapperKind().
Interface for URL resolving.
Convenience implementation of a mapper that maps URIs to other single URIs.
Concrete Resource subclass representing access to an entity via a stream.
std::unique_ptr< Resource, internal::ztd::destroy_delete< Resource > > ptr
static const zorba::String DENY_ACCESS
Constant indicating that Zorba should deny access to the given URI.
The class representing the result of URL resolution.