Show / Hide Table of Contents

Class BaseDatasetHandler

Abstract Base Class for HTTP Handlers which serve SPARQL Datasets
Inheritance
System.Object
BaseDatasetHandler
DatasetHandler
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 Source

IsReusable

Returns that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

LoadConfig(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
| Improve this Doc View Source

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
| Improve this Doc View Source

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

| Improve this Doc View Source

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

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Fields
    • _config
  • Properties
    • IsReusable
  • Methods
    • LoadConfig(HttpContext)
    • ProcessRequest(HttpContext)
    • SendDatasetToClient(HttpContext, ISparqlDataset)
    • UpdateConfig(HttpContext)
  • Extension Methods
Back to top Generated by DocFX