@Override protected void doPut(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
  String command=request.getServletPath();
  if (command.equals("/deploy")) {
    String contextPath=request.getParameter("path");
    deployArchive(request,response,contextPath);
  }
 else {
    sendError(response,"Command " + command + " is not recognized with PUT");
  }
}

@ Override protected void doPut ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { String command = request . getServletPath ( ) ; if ( command . equals ( "/deploy" ) ) { String contextPath = request . getParameter ( "path" ) ; deployArchive ( request , response , contextPath ) ; } else { sendError ( response , "Command " + command + " is not recognized with PUT" ) ; } }
performs the http put method .
