Show / Hide Table of Contents

Class BaseGraphHandler

Abstract base class for HTTP Handlers for serving Graphs in ASP.Net applications
Inheritance
System.Object
BaseGraphHandler
GraphHandler
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.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 Source

IsReusable

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

Methods

| Improve this Doc View Source

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

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

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

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

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)

| 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
    • ComputeETag(IGraph)
    • LoadConfig(HttpContext)
    • ProcessGraph(IGraph)
    • ProcessRequest(HttpContext)
    • SelectWriter(MimeTypeDefinition)
    • UpdateConfig(HttpContext)
  • Extension Methods
Back to top Generated by DocFX