public < T > Future < Void > update ( String pathinfo ) throws APIException , CadiException { final int idx = pathinfo . indexOf ( ' ' ) ; final String qp ; if ( idx >= 0 ) { qp = pathinfo . substring ( idx + 1 ) ; pathinfo = pathinfo . substring ( 0 , idx ) ; } else { qp = queryParams ; } EClient < CT > client = client ( ) ; client . setMethod ( PUT ) ; client . addHeader ( CONTENT_TYPE , typeString ( Void . class ) ) ; client . setQueryParams ( qp ) ; client . setFragment ( fragment ) ; client . setPathInfo ( pathinfo ) ; // client.setPayload(new EClient.Transfer() { // @Override // public void transfer(OutputStream os) throws IOException, APIException { // } // }); client . send ( ) ; queryParams = fragment = null ; return client . future ( null ) ; }
A method to update with a VOID