1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

Fix XMLStreamUtil regression

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1393 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-08-28 20:31:17 +00:00
parent 4962684d0f
commit 98ae8917c0
5 changed files with 5 additions and 5 deletions

View File

@ -1376,7 +1376,7 @@ public class CaldavConnection extends AbstractConnection {
try {
streamReader = XMLStreamUtil.createXMLStreamReader(body);
while (streamReader.hasNext()) {
streamReader.nextTag();
streamReader.next();
if (XMLStreamUtil.isStartTag(streamReader)) {
String tagLocalName = streamReader.getLocalName();
if ("prop".equals(tagLocalName)) {

View File

@ -1982,7 +1982,7 @@ public class DavExchangeSession extends ExchangeSession {
try {
reader = XMLStreamUtil.createXMLStreamReader(roamingdictionary);
while (reader.hasNext()) {
reader.nextTag();
reader.next();
if (XMLStreamUtil.isStartTag(reader, "e")
&& "18-timezone".equals( XMLStreamUtil.getAttributeValue(reader, "k"))) {
String value = XMLStreamUtil.getAttributeValue(reader, "v");

View File

@ -195,7 +195,7 @@ public class ExchangePropPatchMethod extends PostMethod {
});
while (reader.hasNext()) {
reader.nextTag();
reader.next();
if (XMLStreamUtil.isStartTag(reader, "response")) {
handleResponse(reader);
}

View File

@ -808,7 +808,7 @@ public abstract class EWSMethod extends PostMethod {
try {
reader = XMLStreamUtil.createXMLStreamReader(getResponseBodyAsStream());
while (reader.hasNext()) {
reader.nextTag();
reader.next();
handleErrors(reader);
if (serverVersion == null && XMLStreamUtil.isStartTag(reader, "ServerVersionInfo")) {
String majorVersion = getAttributeValue(reader, "MajorVersion");

View File

@ -47,7 +47,7 @@ public class ResolveNamesMethod extends EWSMethod {
responseItem.type = "Contact";
// skip to Contact
while (reader.hasNext() && !XMLStreamUtil.isStartTag(reader, "Resolution")) {
reader.nextTag();
reader.next();
}
while (reader.hasNext() && !XMLStreamUtil.isEndTag(reader, "Resolution")) {
reader.nextTag();