org.apache.cocoon.rest.optional
Class AbstractAsyncronService

java.lang.Object
  extended by 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


Nested Class Summary
 class AbstractAsyncronService.ThreadPerTaskExecutor
           
 
Field Summary
protected  AbstractAsyncronService.ThreadPerTaskExecutor bidExecutor
           
 
Constructor Summary
AbstractAsyncronService()
           
 
Method Summary
abstract  RestResponse doGet()
           
abstract  RestResponse doPost()
           
protected  Object getProgress()
           
abstract  void run()
           
 void setId(String id)
           
protected  void updateProgress(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bidExecutor

protected AbstractAsyncronService.ThreadPerTaskExecutor bidExecutor
Constructor Detail

AbstractAsyncronService

public AbstractAsyncronService()
Method Detail

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.