org.opennms.netmgt.rt
Class RequestTracker

java.lang.Object
  extended by org.opennms.netmgt.rt.RequestTracker

public class RequestTracker
extends Object


Constructor Summary
RequestTracker(String baseURL, String username, String password, int timeout, int retries)
           
 
Method Summary
 Long createTicket(RTTicket ticket)
           
 org.apache.commons.httpclient.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.commons.httpclient.methods.PostMethod post, String content, Pattern pattern)
           
 void setClient(org.apache.commons.httpclient.HttpClient client)
           
 void setPassword(String password)
           
 void setUser(String user)
           
 String toString()
           
 Long updateTicket(Long id, String content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestTracker

public RequestTracker(String baseURL,
                      String username,
                      String password,
                      int timeout,
                      int retries)
Method Detail

createTicket

public Long createTicket(RTTicket ticket)
                  throws RequestTrackerException
Throws:
RequestTrackerException

updateTicket

public Long updateTicket(Long id,
                         String content)
                  throws RequestTrackerException
Throws:
RequestTrackerException

postEdit

public Long postEdit(org.apache.commons.httpclient.methods.PostMethod post,
                     String content,
                     Pattern pattern)
              throws RequestTrackerException
Throws:
RequestTrackerException

getUserInfo

public RTUser getUserInfo(String username)

getTicket

public RTTicket getTicket(Long ticketId,
                          boolean getTextAttachment)
                   throws RequestTrackerException
Throws:
RequestTrackerException

getTicketsForQueue

public List<RTTicket> getTicketsForQueue(String queueName,
                                         long limit)

getFirstPublicQueueForUser

public RTQueue getFirstPublicQueueForUser(String username)
                                   throws RequestTrackerException
Throws:
RequestTrackerException

getQueuesForUser

public List<RTQueue> getQueuesForUser(String username)
                               throws RequestTrackerException
Throws:
RequestTrackerException

getQueue

public RTQueue getQueue(long id)
                 throws RequestTrackerException
Throws:
RequestTrackerException

parseResponseStream

protected Map<String,String> parseResponseStream(InputStream responseStream)
                                          throws IOException
Throws:
IOException

getClient

public org.apache.commons.httpclient.HttpClient getClient()

setClient

public void setClient(org.apache.commons.httpclient.HttpClient client)

setUser

public void setUser(String user)

setPassword

public void setPassword(String password)

toString

public String toString()
Overrides:
toString in class Object

getUsername

public String getUsername()


Copyright © 2011. All Rights Reserved.