} else if (method.equals(HTTPConstants.TRACE)){
httpMethod = new TraceMethod(urlStr);
} else if (method.equals(HTTPConstants.OPTIONS)){
httpMethod = new OptionsMethod(urlStr);
} else if (method.equals(HTTPConstants.DELETE)){
httpMethod = new EntityEnclosingMethod(urlStr) {
@Override
public String getName() { // HC3.1 does not have the method
return HTTPConstants.DELETE;
}
};
} else if (method.equals(HTTPConstants.GET)){
httpMethod = new GetMethod(urlStr);
} else if (method.equals(HTTPConstants.PATCH)){
httpMethod = new EntityEnclosingMethod(urlStr) {
@Override
public String getName() { // HC3.1 does not have the method
return HTTPConstants.PATCH;
}
};