public class RequestTracker extends Object
Constructor and Description |
---|
RequestTracker(String baseURL,
String username,
String password,
int timeout,
int retries) |
Modifier and Type | Method and Description |
---|---|
Long |
createTicket(RTTicket ticket) |
org.apache.http.client.HttpClient |
getClient() |
RTQueue |
getFirstPublicQueueForUser(String username) |
RTQueue |
getQueue(long id) |
List<RTQueue> |
getQueuesForUser(String username) |
RTTicket |
getTicket(Long ticketId,
boolean getTextAttachment) |
List<RTTicket> |
getTicketsForQueue(String queueName,
long limit) |
RTUser |
getUserInfo(String username) |
String |
getUsername() |
protected Map<String,String> |
parseResponseStream(InputStream responseStream) |
Long |
postEdit(org.apache.http.client.methods.HttpPost post,
String content,
Pattern pattern) |
void |
setClient(org.apache.http.impl.client.DefaultHttpClient client) |
void |
setPassword(String password) |
void |
setUser(String user) |
String |
toString() |
Long |
updateTicket(Long id,
String content) |
public Long createTicket(RTTicket ticket) throws RequestTrackerException
RequestTrackerException
public Long updateTicket(Long id, String content) throws RequestTrackerException
RequestTrackerException
public Long postEdit(org.apache.http.client.methods.HttpPost post, String content, Pattern pattern) throws RequestTrackerException
RequestTrackerException
public RTTicket getTicket(Long ticketId, boolean getTextAttachment) throws RequestTrackerException
RequestTrackerException
public RTQueue getFirstPublicQueueForUser(String username) throws RequestTrackerException
RequestTrackerException
public List<RTQueue> getQueuesForUser(String username) throws RequestTrackerException
RequestTrackerException
public RTQueue getQueue(long id) throws RequestTrackerException
RequestTrackerException
protected Map<String,String> parseResponseStream(InputStream responseStream) throws IOException
IOException
public org.apache.http.client.HttpClient getClient()
public void setClient(org.apache.http.impl.client.DefaultHttpClient client)
public void setUser(String user)
public void setPassword(String password)
public String getUsername()
Copyright © 2015. All Rights Reserved.