org.glassfish.jersey.examples.flight.resources
Class FlightSimResource

java.lang.Object
  extended by org.glassfish.jersey.examples.flight.resources.FlightSimResource

@Path(value="simulation")
public class FlightSimResource
extends Object

JAX-RS resource controlling the flight simulation.

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

Nested Class Summary
static class FlightSimResource.Command
           
 
Constructor Summary
FlightSimResource()
           
 
Method Summary
 EventOutput connect()
           
 String execute(String command)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlightSimResource

public FlightSimResource()
Method Detail

execute

@POST
@Consumes(value="application/x-www-form-urlencoded")
public String execute(@NotNull@FormParam(value="command")
                                    String command)

connect

@GET
@Path(value="events")
@Produces(value="text/event-stream")
public EventOutput connect()


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