Class RESTConnector

java.lang.Object
org.bonitasoft.engine.connector.AbstractConnector
org.bonitasoft.connectors.rest.AbstractRESTConnectorImpl
org.bonitasoft.connectors.rest.RESTConnector
All Implemented Interfaces:
org.bonitasoft.engine.connector.Connector
Direct Known Subclasses:
DeleteConnectorImpl, GetConnectorImpl, HeadConnectorImpl, PatchConnectorImpl, PostConnectorImpl, PutConnectorImpl

public class RESTConnector extends AbstractRESTConnectorImpl
This main class of the REST Connector implementation
  • Constructor Details

    • RESTConnector

      protected RESTConnector(boolean hasBody)
  • Method Details

    • validateInputParameters

      public void validateInputParameters() throws org.bonitasoft.engine.connector.ConnectorValidationException
      Specified by:
      validateInputParameters in interface org.bonitasoft.engine.connector.Connector
      Overrides:
      validateInputParameters in class AbstractRESTConnectorImpl
      Throws:
      org.bonitasoft.engine.connector.ConnectorValidationException
    • executeBusinessLogic

      protected void executeBusinessLogic() throws org.bonitasoft.engine.connector.ConnectorException
      Specified by:
      executeBusinessLogic in class org.bonitasoft.engine.connector.AbstractConnector
      Throws:
      org.bonitasoft.engine.connector.ConnectorException
    • execute

      public void execute(Request request, Consumer<org.apache.http.HttpResponse> consumer, Consumer<org.apache.http.HttpResponse> retryConsumer, Consumer<org.apache.http.HttpResponse> failureConsumer) throws Exception
      Execute a given request
      Parameters:
      request - The request to execute
      Throws:
      Exception - any exception that might occur
    • execute

      protected void execute(Request request) throws Exception
      Throws:
      Exception
    • hasBody

      public boolean hasBody()
      Specified by:
      hasBody in class AbstractRESTConnectorImpl