drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/internal/authentication/AuthorizationAuthority.java
protected String md5(Request request) throws NoSuchAlgorithmException, IOException {
        DigestOutputStream dos = new DigestOutputStream("MD5"); //$NON-NLS-1$
        request.write(dos);
        String result = HexConverter.toHex(dos.digest());
        dos.close();
        return result;
    }
protected String md5(Request request) throws NoSuchAlgorithmException, IOException {
        DigestOutputStream dos = new DigestOutputStream("MD5"); //$NON-NLS-1$
        request.write(dos);
        String result = HexConverter.toHex(dos.digest());
        dos.close();
        return result;
    }
Computes the MD5 hash value of the body of the given request and
returns the result as a HEX <code>String</code>.

@param request
@return a HEX <code>String</code> containing the MD5 hash value of the
body of the given request
@exception NoSuchAlgorithmException
@exception IOException