/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at
* trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
* add the following below this CDDL HEADER, with the fields enclosed
* by brackets "[]" replaced with your own identifying information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Portions Copyright 2009 Sun Microsystems, Inc.
*/
public class ResponseChecker {
this(new StringReader(response));
}
// this.source = new StringBuilder();
boolean headerDone = false;
// assign first line of header to httpCode
// then assign all header to <key>:<value> to header map
// finally fill sb with body of request
if (!headerDone) {
headerDone = true;
}
if (!headerDone) {
} else {
}
}
} else {
}
}
// reconstruct header for SOAP engine
while (token.hasMoreTokens()) {
}
}
SOAPMessage message = messageFactory.createMessage(mimeHeaders, new ByteArrayInputStream(this.body.getBytes()));
//DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
//dbf.setNamespaceAware(true);
//DocumentBuilder db = dbf.newDocumentBuilder();
//Document doc = db.newDocument();
if (!(object instanceof SOAPElement)) {
continue;
}
JAXBElement<BatchResponse> batchResponseElement = unmarshaller.unmarshal(soapElement, BatchResponse.class);
}
}
}
}
if (o == this) {
return true;
}
if (!(o instanceof ResponseChecker)) {
return false;
}
// check code "HTTP/1.1 200 OK".split(" ")[1] = "200"
return false;
}
return false;
}
return true;
}
}