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 |
---|---|
Base |
Properties
| Improve this Doc View SourceIsReusable
Returns that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System. |
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 |
---|---|---|
Http |
context | HTTP Context |
Returns
Type | Description |
---|---|
Base |
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 |
---|---|---|
Http |
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 |
---|---|---|
Http |
context | HTTP Context |
ISparql |
dataset | Dataset to serve |
Remarks
Implementations should override this if they wish to override the default behaviour of outputting the entire dataset using the Send
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 |
---|---|---|
Http |
context | HTTP Context |