org.apache.stanbol.reasoners.web.resources
Class JobsResource
java.lang.Object
org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
org.apache.stanbol.reasoners.web.resources.JobsResource
public class JobsResource
- extends BaseStanbolResource
Return the result of a reasoners background job
- Author:
- enridaga
|
Constructor Summary |
JobsResource(javax.servlet.ServletContext servletContext,
javax.ws.rs.core.HttpHeaders headers)
|
|
Method Summary |
javax.ws.rs.core.Response |
get(java.lang.String id,
javax.ws.rs.core.HttpHeaders headers)
To read a /reasoners job output. |
java.lang.String |
getJobLocation()
If the output is not ready, this field contains the location of the job to be rendered in the viewable. |
javax.ws.rs.core.Response |
handleCorsPreflight(javax.ws.rs.core.HttpHeaders headers)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JobsResource
public JobsResource(@Context
javax.servlet.ServletContext servletContext,
@Context
javax.ws.rs.core.HttpHeaders headers)
get
public javax.ws.rs.core.Response get(java.lang.String id,
@Context
javax.ws.rs.core.HttpHeaders headers)
- To read a /reasoners job output.
- Parameters:
id -
- Returns:
getJobLocation
public java.lang.String getJobLocation()
- If the output is not ready, this field contains the location of the job to be rendered in the viewable.
- Returns:
handleCorsPreflight
public javax.ws.rs.core.Response handleCorsPreflight(@Context
javax.ws.rs.core.HttpHeaders headers)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.