Advertisement
Advertisement
| 04.17.2008 at 01:46AM PDT, ID: 23330128 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: |
{
// Send GET /Inform?c=testing HTTP/1.1 ... message
int statusCode = httpClient.executeMethod(httpGetMethod);
// Get the response
if (statusCode == HttpStatus.SC_OK)
{
returnValue = true;
}
else
{
logger.warn("Authentication of Trigger CPE is failure !!\nStatus Code = " + statusCode + "\nDescription: " + httpGetMethod.getStatusLine());
}
}
catch (Exception e)
{
logger.error("", e);
}
finally
{
// release any connection resources used by the method
httpGetMethod.releaseConnection();
return returnValue;
}
httpGetMethod.releaseConnection();
|