public TomcatManager(URL url,String username,String password,String charset){
  this.url=url;
  this.username=username;
  this.password=password;
  this.charset=charset;
  try {
    md5=MessageDigest.getInstance("md5");
  }
 catch (  NoSuchAlgorithmException e) {
    throw new CargoException("Cannot get the MD5 digest for generating the Digest authentication headers",e);
  }
}

public TomcatManager ( URL url , String username , String password , String charset ) { this . url = url ; this . username = username ; this . password = password ; this . charset = charset ; try { md5 = MessageDigest . getInstance ( "md5" ) ; } catch ( NoSuchAlgorithmException e ) { throw new CargoException ( "Cannot get the MD5 digest for generating the Digest authentication headers" , e ) ; } }
creates a tomcat manager wrapper for the specified url , username , password and url encoding .
