@POST
  @Path("/{path: .*}")
  public Response handlePost(String xml, @Context HttpHeaders headers,
                             @Context UriInfo ui) {
    try {
      return oozieDelegate.consumeService(headers, ui.getAbsolutePath()
        .getPath(), ui.getQueryParameters(), HttpMethod.POST, xml);
    } catch (Exception ex) {
      LOGGER.error("Error in POST proxy", ex);
      throw new WfmWebException(ex);
    }
  }
This is a class used to bridge the communication between the and the Oozie
API executing inside ambari.
contrib/views/wfmanager/src/main/java/org/apache/oozie/ambari/view/OozieProxyImpersonator.java