org.apache.stanbol.reasoners.web.resources
Class JobsResource

java.lang.Object
  extended by org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
      extended by org.apache.stanbol.reasoners.web.resources.JobsResource

public class JobsResource
extends BaseStanbolResource

Return the result of a reasoners background job

Author:
enridaga

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
BaseStanbolResource.MenuItem
 
Field Summary
 
Fields inherited from class org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
LINK_RESOURCES, NAVIGATION_LINKS, ROOT_URL, SCRIPT_RESOURCES, servletContext, STATIC_RESOURCES_ROOT_URL, uriInfo
 
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 org.apache.stanbol.commons.web.base.resource.BaseStanbolResource
getMainMenuItems, getNavigationLinks, getPublicBaseUri, getRegisteredLinkResources, getRegisteredScriptResources, getRootUrl, getStaticRootUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobsResource

public JobsResource(@Context
                    javax.servlet.ServletContext servletContext,
                    @Context
                    javax.ws.rs.core.HttpHeaders headers)
Method Detail

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.