public interface APIEndpoint
Modifier and Type | Interface and Description |
---|---|
static class |
APIEndpoint.Request |
Modifier and Type | Method and Description |
---|---|
ResponseResult |
call(APIEndpoint.Request r,
NoteBoard nb)
Called by the Router to invoke the API and return set of result matches
|
Bindings |
defaults()
Return any default bindings that this endpoint has set up (which need
not be ones specified by a config).
|
com.hp.hpl.jena.rdf.model.Resource |
getMetadata(Bindings context,
URI requestURI,
String formatName,
com.hp.hpl.jena.rdf.model.Model metadata)
Return a metadata description for the query that would be run by this endpoint
|
String |
getPrefixPath()
An API spec (and hence an endpoint) may have been defined with a
prefix path string, which follows the context path.
|
Renderer |
getRendererByType(MediaType mt)
Return the renderer known by the given media type.
|
Renderer |
getRendererNamed(String name)
Return the renderer known by the given name.
|
APIEndpointSpec |
getSpec()
Return the specification for this endpoint
|
String |
getURITemplate()
The URI template at which this APIEndpoint should be attached
|
String getURITemplate()
ResponseResult call(APIEndpoint.Request r, NoteBoard nb)
r
- the requestcom.hp.hpl.jena.rdf.model.Resource getMetadata(Bindings context, URI requestURI, String formatName, com.hp.hpl.jena.rdf.model.Model metadata)
APIEndpointSpec getSpec()
Renderer getRendererNamed(String name)
Renderer getRendererByType(MediaType mt)
Bindings defaults()
String getPrefixPath()
Copyright © 2014. All Rights Reserved.