org.glassfish.jersey.examples.server.async
Class LongRunningAsyncOperationResource

java.lang.Object
  extended by org.glassfish.jersey.examples.server.async.LongRunningAsyncOperationResource

@Produces(value="text/plain")
public class LongRunningAsyncOperationResource
extends Object

Example resource for long running async operations.

Author:
Marek Potociar (marek.potociar at oracle.com)

Field Summary
static String NOTIFICATION_RESPONSE
           
 
Constructor Summary
LongRunningAsyncOperationResource()
           
 
Method Summary
 String basicSyncExample()
           
 void suspendViaContextExample(javax.ws.rs.container.AsyncResponse ar, String query)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_RESPONSE

public static final String NOTIFICATION_RESPONSE
See Also:
Constant Field Values
Constructor Detail

LongRunningAsyncOperationResource

public LongRunningAsyncOperationResource()
Method Detail

basicSyncExample

@GET
@Path(value="basicSyncExample")
public String basicSyncExample()

suspendViaContextExample

@GET
@Path(value="async")
public void suspendViaContextExample(@Suspended
                                              javax.ws.rs.container.AsyncResponse ar,
                                              @QueryParam(value="query")
                                              String query)


Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.