com.goonit.imapi.jaxrs.servlet.isim
Class locationSearch

java.lang.Object
  extended by com.goonit.imapi.jaxrs.servlet.isim.locationSearch

public class locationSearch
extends java.lang.Object

locationSearch is a RESTFul service which retrieves Locations from the ISIM organizational tree.

This class has a Path annotation with the value "/locationSearch/{filter}" which means the resource will be available at: http://<hostname>:<port>/<context root>/<servlet path>/locationSearch/{searchBase}/{filter}


Constructor Summary
locationSearch()
           
 
Method Summary
 java.lang.String GET(javax.servlet.http.HttpServletRequest requestObj, javax.servlet.http.HttpServletResponse responseObj, java.lang.String filter)
          Processes a GET request and returns the stored message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

locationSearch

public locationSearch()
Method Detail

GET

public java.lang.String GET(@Context
                            javax.servlet.http.HttpServletRequest requestObj,
                            @Context
                            javax.servlet.http.HttpServletResponse responseObj,
                            java.lang.String filter)
Processes a GET request and returns the stored message.

Returns:
a JSON Object containing an Array of locations, e.g. {"items": [ {"erparent":"erglobalid=6328172302732505759,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2", "name":"East", "dn":"erglobalid=6328984493898672011,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2"}, {"erparent":"erglobalid=6328172302732505759,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2","name":"West", "dn":"erglobalid=6329024793633568744,ou=orgchart,erglobalid=00000000000000000000,ou=goonit,dc=com2"} ] }