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
RequestTrackerExceptionpublic Long updateTicket(Long id, String content) throws RequestTrackerException
RequestTrackerExceptionpublic Long postEdit(org.apache.http.client.methods.HttpPost post, String content, Pattern pattern) throws RequestTrackerException
RequestTrackerExceptionpublic RTTicket getTicket(Long ticketId, boolean getTextAttachment) throws RequestTrackerException
RequestTrackerExceptionpublic RTQueue getFirstPublicQueueForUser(String username) throws RequestTrackerException
RequestTrackerExceptionpublic List<RTQueue> getQueuesForUser(String username) throws RequestTrackerException
RequestTrackerExceptionpublic RTQueue getQueue(long id) throws RequestTrackerException
RequestTrackerExceptionprotected Map<String,String> parseResponseStream(InputStream responseStream) throws IOException
IOExceptionpublic HttpClientWrapper getClientWrapper()
public String getUsername()
public void setUsername(String user)
public void setPassword(String password)
Copyright © 2022. All rights reserved.