@Path("update")
    @GET
    @Produces({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN })
    @SuppressWarnings("checkstyle:illegalcatch")
    public Response update(@QueryParam("origin") final String _origin,
                           @QueryParam("stmt") final String _stmt)
    {
        Response ret = null;
        // only permit updates on this url
        try {
            final EQLInvoker invoker = InvokerUtil.getInvoker();
            final IEQLStmt stmt = invoker.invoke(_stmt);
            if (invoker.getSyntaxErrors().isEmpty() && stmt instanceof IUpdateStmt) {
                registerEQLStmt(_origin, _stmt);
                final int modified = ((IUpdateStmt) stmt).execute();
                ret = Response.ok().type(MediaType.APPLICATION_JSON).entity(
                                getJSONReply(new UpdateEQLReply().setModified(modified))).build();
            } else {
                final StringBuilder error = new StringBuilder();
                for (final String syntaxError : invoker.getSyntaxErrors()) {
                    LOG.warn(syntaxError);
                    error.append(syntaxError).append("\n");
                }
                final ErrorReply reply = new ErrorReply()
                                .setError("EQL Syntax Error")
                                .setMessage(error.toString());
                ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
            }
        } catch (final Exception e) {
            LOG.error("Error processing data.", e);
            final ErrorReply reply = new ErrorReply()
                            .setError(e.getClass().getName())
                            .setMessage(e.getMessage())
                            .setStacktrace(ExceptionUtils.getStackTrace(e));
            ret = Response.serverError().type(MediaType.APPLICATION_JSON).entity(getJSONReply(reply)).build();
        }
        return ret;
    }
@ Path ( "update" ) @ GET @ Produces ( { MediaType . APPLICATION_JSON , MediaType . TEXT_PLAIN } ) @ SuppressWarnings ( "checkstyle:illegalcatch" ) public Response update ( @ QueryParam ( "origin" ) final String _origin , @ QueryParam ( "stmt" ) final String _stmt ) { Response ret = null ; try { final EQLInvoker invoker = InvokerUtil . getInvoker ( ) ; final IEQLStmt stmt = invoker . invoke ( _stmt ) ; if ( invoker . getSyntaxErrors ( ) . isEmpty ( ) && stmt instanceof IUpdateStmt ) { registerEQLStmt ( _origin , _stmt ) ; final int modified = ( ( IUpdateStmt ) stmt ) . execute ( ) ; ret = Response . ok ( ) . type ( MediaType . APPLICATION_JSON ) . entity ( getJSONReply ( new UpdateEQLReply ( ) . setModified ( modified ) ) ) . build ( ) ; } else { final StringBuilder error = new StringBuilder ( ) ; for ( final String syntaxError : invoker . getSyntaxErrors ( ) ) { LOG . warn ( syntaxError ) ; error . append ( syntaxError ) . append ( "\n" ) ; } final ErrorReply reply = new ErrorReply ( ) . setError ( "EQL Syntax Error" ) . setMessage ( error . toString ( ) ) ; ret = Response . serverError ( ) . type ( MediaType . APPLICATION_JSON ) . entity ( getJSONReply ( reply ) ) . build ( ) ; } } catch ( final Exception e ) { LOG . error ( "Error processing data." , e ) ; final ErrorReply reply = new ErrorReply ( ) . setError ( e . getClass ( ) . getName ( ) ) . setMessage ( e . getMessage ( ) ) . setStacktrace ( ExceptionUtils . getStackTrace ( e ) ) ; ret = Response . serverError ( ) . type ( MediaType . APPLICATION_JSON ) . entity ( getJSONReply ( reply ) ) . build ( ) ; } return ret ; }
Update.

@param _origin the origin
@param _stmt the stmt
@return not implemented.