Class BaseSparqlHttpProtocolHandler
Abstract Base Class for creating SPARQL Graph Store HTTP Protocol Handler implementations
Namespace: VDS.RDF.Web
Assembly: dotNetRDF.Web.dll
Syntax
public abstract class BaseSparqlHttpProtocolHandler : IHttpHandler
Fields
| Improve this Doc View Source_basePath
Base Path of the Handler as determined by the implementing class when loading Configuration using the LoadConfig(HttpContext, out String) method
Declaration
protected String _basePath
Field Value
Type | Description |
---|---|
String |
_config
Handler Configuration
Declaration
protected BaseProtocolHandlerConfiguration _config
Field Value
Type | Description |
---|---|
BaseProtocolHandlerConfiguration |
Properties
| Improve this Doc View SourceIsReusable
Indicates that the Handler is reusable
Declaration
public bool IsReusable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceLoadConfig(HttpContext, out String)
Loads the Handler Configuration
Declaration
protected abstract BaseProtocolHandlerConfiguration LoadConfig(HttpContext context, out String basePath)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
String | basePath | Base Path of the Handler to be determined by an implementing class |
Returns
Type | Description |
---|---|
BaseProtocolHandlerConfiguration |
ProcessRequest(HttpContext)
Processes requests made to the Graph Store HTTP Protocol endpoint and invokes the appropriate methods on the Protocol Processor that is in use
Declaration
public virtual void ProcessRequest(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |
Remarks
Implementations may override this if necessary - if the implementation is only providing additional logic such as authentication, ACLs etc. then it is recommended that the override applies its logic and then calls the base method since this base method will handle much of the error handling and sending of appropriate HTTP Response Codes.
UpdateConfig(HttpContext)
Updates the Handler Configuration
Declaration
protected virtual void UpdateConfig(HttpContext context)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | HTTP Context |