Class InternalDispatcher


  • public class InternalDispatcher
    extends Object

    InternalDispatch represents a "forward" in servlet terms. You can perform an internal GET/POST/DELETE/PUT using IntenalDispatch using Java Object. For example:

     @GET
     @Produces("text/plain")
     @Path("/forward/object")
     public SomeObject forward(@Context InternalDispatcher dispatcher) {
         return (SomeObject) dispatcher.getEntity("/some-object");
     }
     

    That previous snippet performs an internal request to /some-object and returns the Object representation of the Resource that lives at "/some-object".

    Version:
    $Revision: 1 $
    Author:
    Solomon Duskis