public class RequestTracker extends Object
Constructor and Description |
---|
RequestTracker(String baseURL,
String username,
String password,
int timeout,
int retries,
boolean useSystemProxy) |
Modifier and Type | Method and Description |
---|---|
Long |
createTicket(RTTicket ticket) |
HttpClientWrapper |
getClientWrapper() |
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 |
setPassword(String password) |
void |
setUsername(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 HttpClientWrapper getClientWrapper()
public String getUsername()
public void setUsername(String user)
public void setPassword(String password)
Copyright © 2021. All rights reserved.