/** * Return the operation that corresponds to the endpoint name for a given data service. * Side effect: This operation should set the selected endpoint in the HttpAction * if this operation is determined to be a specific endpoint. */ protected Operation chooseOperation(HttpAction action, DataService dataService, String endpointName) { // Overridden by the ServiceRouter. // This default implementation is plain service name to operation based on the // DataService as would be used by operation servlets bound by web.xml // except Fuseki can add and delete mapping while running. Endpoint ep = dataService.getEndpoint(endpointName); Operation operation = ep.getOperation(); action.setEndpoint(ep); return operation; }
/** * Return the operation that corresponds to the endpoint name for a given data service. * Side effect: This operation should set the selected endpoint in the HttpAction * if this operation is determined to be a specific endpoint. */ protected Operation chooseOperation(HttpAction action, DataService dataService, String endpointName) { // Overridden by the ServiceRouter. // This default implementation is plain service name to operation based on the // DataService as would be used by operation servlets bound by web.xml // except Fuseki can add and delete mapping while running. Endpoint ep = dataService.getEndpoint(endpointName); Operation operation = ep.getOperation(); action.setEndpoint(ep); return operation; }
Operation operation = ep.getOperation(); action.setEndpoint(ep); if ( operation != null ) {
Operation operation = ep.getOperation(); action.setEndpoint(ep); if ( operation != null ) {