下面这段代码是用  .net 的写了 。 但是我要 用  java去实现他 问题 不 知道 HttpWebResponse 和 HttpWebRequest 对应java 是哪两个 类啊 。 我写的 是 msn 导入联系人的应用 身份验证都过啦 就差最后一步啦。 拿令牌去 msn发 请求 得到一个 xml格式的响应 取里面的联系人数据。 问题是 这个例子是 用 .net 实现的 。 我用的是 java 怎么办?public string GetContacts(WindowsLiveLogin.ConsentToken ct) {  string lid = ct.LocationID;  string delegatedToken = ct.DelegationToken; // Construct the request URI. string uri = "https://livecontacts.services.live.com/@L@" + lid + "/rest/LiveContacts/Contacts/"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); request.UserAgent = "Windows Live Data Interactive SDK"; request.ContentType = "application/xml; charset=utf-8"; request.Method = "GET";  // Add the delegation token to a request header. request.Headers.Add("Authorization", "DelegatedToken dt=\"" + delegatedToken + "\"");  //Issue the HTTP GET request to Windows Live Contacts. HttpWebResponse response = (HttpWebResponse)request.GetResponse();  //The response body is an XML stream. Read the stream into an XmlDocument. XmlDocument contacts = new XmlDocument(); contacts.LoadXml(new StreamReader(response.GetResponseStream()).ReadToEnd());  //Use the document. For example, display contacts.InnerXml. return contacts.InnerXml;  //Close the response. //response.Close(); }