Class BaseGraphHandler
Abstract base class for HTTP Handlers for serving Graphs in ASP.Net applications
Namespace: VDS.RDF.Web
Assembly: dotNetRdf.AspNet.dll
Syntax
public abstract class BaseGraphHandler : IHttpHandler
Fields
| Improve this Doc View Source_config
Handler Configuration
Declaration
protected BaseGraphHandlerConfiguration _config
Field Value
Type | Description |
---|---|
BaseGraphHandlerConfiguration |
Properties
| Improve this Doc View SourceIsReusable
Gets that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceComputeETag(IGraph)
Method which computes an ETag for a Graph
Declaration
protected virtual String ComputeETag(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph |
Returns
Type | Description |
---|---|
String |
Remarks
Method may return null if no ETag can be computed or you do not wish to serve ETag Headers
LoadConfig(HttpContext)
Abstract method in which concrete implementations must load and return their Configuration
Declaration
protected abstract BaseGraphHandlerConfiguration LoadConfig(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
Returns
Type | Description |
---|---|
BaseGraphHandlerConfiguration |
ProcessGraph(IGraph)
Method which can be used to alter the Graph before it is served
Declaration
protected virtual IGraph ProcessGraph(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph |
Returns
Type | Description |
---|---|
IGraph |
ProcessRequest(HttpContext)
Processes the request by loading the Configuration in order to obtain the Graph to be served and then serving it to the client
Declaration
public void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
SelectWriter(MimeTypeDefinition)
Selects the Writer to use for sending the Graph to the Client
Declaration
protected virtual IRdfWriter SelectWriter(MimeTypeDefinition definition)
Parameters
Type | Name | Description |
---|---|---|
MimeTypeDefinition | definition | Selected MIME Type Definition |
Returns
Type | Description |
---|---|
IRdfWriter |
Remarks
Implementations may override this if they wish to substitute in an alternative writer for certain MIME types (e.g. as done by the SchemaGraphHandler)
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 |