java.lang.Object
org.apache.jena.fuseki.server.OperationRegistry
Registry of operations.
The registry (accessed via the servlet context) provides
- Content-type to
Operation
viafindByContentType(String)
. Operation
toActionService
implementation viafindHandler(Operation)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyConfig
(OperationRegistry src, OperationRegistry dst) Copy the configuration fromsrc
intodst
.static OperationRegistry
Create an emptyOperationRegistry
.static OperationRegistry
Create aOperationRegistry
with the standard operations included.findByContentType
(String contentType) Find theOperation
for aContent-Type
, or return null.findHandler
(Operation operation) Find theActionService
implementation for anOperation
, or return null..static OperationRegistry
get()
Return the current server-wide standard configuration.static OperationRegistry
get
(jakarta.servlet.ServletContext servletContext) boolean
isRegistered
(Operation operation) void
register
(Operation operation, String contentType, ActionService action) Register a newOperation
, with itsContent-Type
(may be null, meaning no dispatch by content type), and the implementation handler.void
register
(Operation operation, ActionService action) Register a newOperation
and the implementation handler.static void
set
(jakarta.servlet.ServletContext cxt, OperationRegistry registry) void
unregister
(Operation operation) Remove the registration for an operation.
-
Constructor Details
-
OperationRegistry
-
-
Method Details
-
get
Return the current server-wide standard configuration. It is copied into each new FusekiServer created. Changing it after a server has been created does not affect the server. -
copyConfig
Copy the configuration fromsrc
intodst
. -
createStd
Create aOperationRegistry
with the standard operations included. -
createEmpty
Create an emptyOperationRegistry
. -
findByContentType
Find theOperation
for aContent-Type
, or return null. -
findHandler
Find theActionService
implementation for anOperation
, or return null.. -
isRegistered
-
register
Register a newOperation
and the implementation handler.The application needs to enable an operation on a service endpoint.
Replaces any existing registration.
-
register
Register a newOperation
, with itsContent-Type
(may be null, meaning no dispatch by content type), and the implementation handler.The application needs to enable an operation on a service endpoint.
Replaces any existing registration.
-
unregister
Remove the registration for an operation. -
get
-
set
-