Class RemoteConnectorServiceImpl

    • Constructor Detail

      • RemoteConnectorServiceImpl

        public RemoteConnectorServiceImpl()
    • Method Detail

      • buildRequest

        public RemoteConnectorRequest buildRequest​(java.lang.String url,
                                                   java.lang.Class<? extends org.apache.commons.httpclient.HttpMethodBase> method)
        Builds a new Request object, using HttpClient method descriptions
      • executeJSONRequest

        public org.json.simple.JSONObject executeJSONRequest​(RemoteConnectorRequest request)
                                                      throws org.json.simple.parser.ParseException,
                                                             java.io.IOException,
                                                             org.alfresco.repo.security.authentication.AuthenticationException
        Executes the given request, requesting a JSON response, and returns the parsed JSON received back
        Specified by:
        executeJSONRequest in interface RemoteConnectorService
        Throws:
        org.json.simple.parser.ParseException - If the response is not valid JSON
        java.io.IOException
        org.alfresco.repo.security.authentication.AuthenticationException
      • doExecuteJSONRequest

        public static org.json.simple.JSONObject doExecuteJSONRequest​(RemoteConnectorRequest request,
                                                                      RemoteConnectorService service)
                                                               throws org.json.simple.parser.ParseException,
                                                                      java.io.IOException,
                                                                      org.alfresco.repo.security.authentication.AuthenticationException
        Throws:
        org.json.simple.parser.ParseException
        java.io.IOException
        org.alfresco.repo.security.authentication.AuthenticationException