Package de.boksa.rt.rest

Examples of de.boksa.rt.rest.RTRESTClient


 
 
  @Override
  public RTTicketDAO getRTTicketDAO(Map<String,Object> parameters) {
    RESTRTTicketDAO dao = new RESTRTTicketDAO();
    dao.setClient(new RTRESTClient(
      parameters.get(REST_INTERFACE_BASE_URL).toString(),
      parameters.get(REST_INTERFACE_USERNAME).toString(),
      parameters.get(REST_INTERFACE_PASSWORD).toString()
    ));   
   
View Full Code Here


public class RTRESTClientTest {

  @Test
  public void test() throws IOException {   
    // for the credentials used see http://requesttracker.wikia.com/wiki/Demo
    RTRESTClient client = new RTRESTClient("http://rt.easter-eggs.org/demos/stable/REST/1.0/", "john.foo", "john.foo");
    client.searchTickets("Queue = 'Customer Service'", RTRESTClient.TicketSearchResponseFormat.IDONLY);
    client.login();
    client.searchTickets("Queue = 'Customer Service'", RTRESTClient.TicketSearchResponseFormat.MULTILINE);
       
    client.searchTickets("Queue = 'Customer Service'", RTRESTClient.TicketSearchResponseFormat.IDONLY);
    client.logout();
    client.searchTickets("Queue = 'Customer Service'", RTRESTClient.TicketSearchResponseFormat.IDONLY);
  }
View Full Code Here

TOP

Related Classes of de.boksa.rt.rest.RTRESTClient

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.