Search in sources :

Example 1 with OperationName

use of org.apache.jena.fuseki.server.OperationName in project jena by apache.

the class JsonDescription method describe.

public static void describe(JsonBuilder builder, DataAccessPoint access) {
    builder.startObject();
    builder.key(JsonConst.dsName).value(access.getName());
    builder.key(JsonConst.dsState).value(access.getDataService().isAcceptingRequests());
    builder.key(JsonConst.dsService);
    builder.startArray();
    for (OperationName opName : access.getDataService().getOperations()) {
        List<Endpoint> endpoints = access.getDataService().getOperation(opName);
        describe(builder, opName, endpoints);
    }
    builder.finishArray();
    builder.finishObject();
}
Also used : Endpoint(org.apache.jena.fuseki.server.Endpoint) OperationName(org.apache.jena.fuseki.server.OperationName)

Aggregations

Endpoint (org.apache.jena.fuseki.server.Endpoint)1 OperationName (org.apache.jena.fuseki.server.OperationName)1