org.glassfish.jersey.examples.flight.resources
Class FlightSimResource
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlightSimResource
public FlightSimResource()
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-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.