Class BaseDatasetHandler
Abstract Base Class for HTTP Handlers which serve SPARQL Datasets
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public abstract class BaseDatasetHandler : IHttpHandler
Fields
| Improve this Doc View Source_config
Holds the Configuration for this HTTP Handler
Declaration
protected BaseDatasetHandlerConfiguration _config
Field Value
Type | Description |
---|---|
BaseDatasetHandlerConfiguration |
Properties
| Improve this Doc View SourceIsReusable
Returns that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceLoadConfig(HttpContext)
Abstract method in which concrete implementations must load and return their Configuration
Declaration
protected abstract BaseDatasetHandlerConfiguration LoadConfig(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
Returns
Type | Description |
---|---|
BaseDatasetHandlerConfiguration |
ProcessRequest(HttpContext)
Processes the request by loading the Configuration in order to obtain the Dataset to be served and then serving it to the client
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
SendDatasetToClient(HttpContext, ISparqlDataset)
Serves the Dataset to the Client
Declaration
public virtual void SendDatasetToClient(HttpContext context, ISparqlDataset dataset)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
ISparqlDataset | dataset | Dataset to serve |
Remarks
Implementations should override this if they wish to override the default behaviour of outputting the entire dataset using the SendToClient(IHttpContext, Object) method e.g. to use a custom writer or server only portions of the dataset
UpdateConfig(HttpContext)
Abstract method in which concrete implementations may update their Configuration post-request processing if necessary
Declaration
protected virtual void UpdateConfig(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |