org.apache.cocoon.rest.optional
Class AbstractAsyncronService
java.lang.Object
org.apache.cocoon.rest.optional.AbstractAsyncronService
- All Implemented Interfaces:
- Runnable, Get, Post
- Direct Known Subclasses:
- ProgressService
public abstract class AbstractAsyncronService
- extends Object
- implements Get, Post, Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bidExecutor
protected AbstractAsyncronService.ThreadPerTaskExecutor bidExecutor
AbstractAsyncronService
public AbstractAsyncronService()
setId
public void setId(String id)
updateProgress
protected void updateProgress(int i)
getProgress
protected Object getProgress()
doPost
public abstract RestResponse doPost()
throws Exception
- Specified by:
doPost
in interface Post
- Throws:
Exception
doGet
public abstract RestResponse doGet()
throws Exception
- Specified by:
doGet
in interface Get
- Throws:
Exception
run
public abstract void run()
- Specified by:
run
in interface Runnable
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.