Package org.apache.stanbol.reasoners.web.utils

Examples of org.apache.stanbol.reasoners.web.utils.ResponseTaskBuilder


                try {
                    o = f.get();
                    if(o instanceof ReasoningServiceResult){
                        log.debug("Is a ReasoningServiceResult");
                        ReasoningServiceResult<?> result = (ReasoningServiceResult<?>) o;
                        return new ResponseTaskBuilder(uriInfo,context,headers).build(result);
                    }else{
                        log.error("Job {} does not belong to reasoners", id);
                        throw new WebApplicationException(Response.Status.NOT_FOUND);
                    }
                } catch (InterruptedException e) {
View Full Code Here


            ReasoningServiceInputManager imngr = prepareInput();
            // The service executor
            ReasoningServiceExecutor executor = new ReasoningServiceExecutor(tcManager, imngr,
                    getCurrentService(), getCurrentTask(), target, parameters);
            ReasoningServiceResult<?> result = executor.call();
            return new ResponseTaskBuilder(uriInfo, context, headers).build(result);
        } catch (Exception e) {
            if (e instanceof RuntimeException) {
                throw (RuntimeException)e;
            }
            throw new WebApplicationException(e, Response.Status.INTERNAL_SERVER_ERROR);
View Full Code Here

            ReasoningServiceInputManager imngr = prepareInput();
            // The service executor
            ReasoningServiceExecutor executor = new ReasoningServiceExecutor(tcManager, imngr,
                    getCurrentService(), getCurrentTask(), target, parameters);
            ReasoningServiceResult<?> result = executor.call();
            return new ResponseTaskBuilder(uriInfo, context, headers).build(result);
        } catch (InconsistentInputException e) {
            new WebApplicationException(e);
        } catch (ReasoningServiceException e) {
            new WebApplicationException(e);
        } catch (UnsupportedTaskException e) {
View Full Code Here

                try {
                    o = f.get();
                    if(o instanceof ReasoningServiceResult){
                        log.debug("Is a ReasoningServiceResult");
                        ReasoningServiceResult<?> result = (ReasoningServiceResult<?>) o;
                        return new ResponseTaskBuilder(uriInfo,context,headers).build(result);
                    }else{
                        log.error("Job {} does not belong to reasoners", id);
                        throw new WebApplicationException(Response.Status.NOT_FOUND);
                    }
                } catch (InterruptedException e) {
View Full Code Here

TOP

Related Classes of org.apache.stanbol.reasoners.web.utils.ResponseTaskBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.