Class IServerRestClientBuilder

  • Direct Known Subclasses:
    IServerRestClientCluster

    public class IServerRestClientBuilder
    extends RestClientBuilder
    Builder pattern to build I-Server REST Client

    Ex. Sample Code

    GET API call

      RestClient restClient = new IServerRestClientBuilder()
                         .sessionId(iServerSession.getSessionID())
                         .relativeUrl("/messages/B19DEDCC11D4E0EFC000EB9495D0F44F/bookmarks")
                         .methodTypes(MethodTypes.GET)
                         .build();
    
    POST API call
     RestClient restClient = new IServerRestClientBuilder()
                          .sessionId(iServerSession.getSessionID())
                         .relativeUrl("/messages/B19DEDCC11D4E0EFC000EB9495D0F44F/bookmarks")
                         .mediaType(MediaTypes.APPLICATION_JSON)
                         .body("{}")
    
                         .methodTypes(MethodTypes.POST)
                         .build();