String URL = BASE_URL+"statuses/update.xml?status="+status.getTextURLEncoded();
Request request = new Request(Method.POST, URL);
//request.setEntity(status.getTextURLEncoded());
auth(request);
Response response = client.handle(request);
try {
//System.out.println(response.getStatus()+response.getEntity().getText());
Status s = (Status)xstream.unmarshal(new DomReader(response.getEntityAsDom().getDocument()));
if(response.getStatus().equals(org.restlet.data.Status.SUCCESS_OK)){
//TwipsePlugin.getDefault().getStatusList().add(s);
//TwipsePlugin.getDefault().getStatusList().notifyObservers();
}
} catch (IOException e) {
// TODO Auto-generated catch block