Class OpenServiceBroker


  • public class OpenServiceBroker
    extends java.lang.Object
    • Constructor Detail

      • OpenServiceBroker

        public OpenServiceBroker()
    • Method Detail

      • setBrokerAPIMinVersion

        public void setBrokerAPIMinVersion​(java.lang.String version)
        Sets the minimum Broker API Version that this broker requires.
        Parameters:
        version - the Broker API Version as a string
      • getBrokerAPIMinVersion

        public BrokerAPIVersion getBrokerAPIMinVersion()
        Gets the minimum Broker API Version that this configured for this broker.
        Returns:
        the min broker API version
      • setErrorLogHandler

        public void setErrorLogHandler​(ErrorLogHandler errorLogHandler)
        Sets a new error handler.
        Parameters:
        errorLogHandler - the error handler or null if errors shouldn't be logged
      • getErrorLogHandler

        public ErrorLogHandler getErrorLogHandler()
        Gets the current error log handler.
        Returns:
        the error log handler
      • setContextHandler

        public void setContextHandler​(ContextHandler contextHandler)
        Sets a new context handler.
        Parameters:
        contextHandler - the context handler or null if context objects shouldn't be converted
      • getContextHandler

        public ContextHandler getContextHandler()
        Gets the current contextHandler log handler.
        Returns:
        the context handler
      • processRequest

        public void processRequest​(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response,
                                   OpenServiceBrokerHandler handler)
                            throws java.io.IOException
        Processes an Open Service Broker request.
        Parameters:
        request - the HTTP request object
        response - the HTTP response object
        handler - the handler that handles the request
        Throws:
        java.io.IOException - if the request cannot be read or the response cannot be sent
      • isCatalogRequest

        protected boolean isCatalogRequest​(java.lang.String method,
                                           java.lang.String[] path)
      • isProvisionRequest

        protected boolean isProvisionRequest​(java.lang.String method,
                                             java.lang.String[] path)
      • isDeprovsionRequest

        protected boolean isDeprovsionRequest​(java.lang.String method,
                                              java.lang.String[] path)
      • isInstanceFetchRequest

        protected boolean isInstanceFetchRequest​(java.lang.String method,
                                                 java.lang.String[] path)
      • isInstanceUpdateRequest

        protected boolean isInstanceUpdateRequest​(java.lang.String method,
                                                  java.lang.String[] path)
      • isInstanceLastOperationRequest

        protected boolean isInstanceLastOperationRequest​(java.lang.String method,
                                                         java.lang.String[] path)
      • isBindRequest

        protected boolean isBindRequest​(java.lang.String method,
                                        java.lang.String[] path)
      • isUnbindRequest

        protected boolean isUnbindRequest​(java.lang.String method,
                                          java.lang.String[] path)
      • isBindingFetchRequest

        protected boolean isBindingFetchRequest​(java.lang.String method,
                                                java.lang.String[] path)
      • isBindingLastOperationRequest

        protected boolean isBindingLastOperationRequest​(java.lang.String method,
                                                        java.lang.String[] path)
      • getAcceptsIncomplete

        protected boolean getAcceptsIncomplete​(javax.servlet.http.HttpServletRequest request)