Getting Started with Mule Cloud Connect

Book description

Connect your enterprise to a wide range of SaaS platforms, Open APIs, and social networks quickly and without difficulty. Through step-by-step instructions and numerous real-world examples, this concise guide shows you how to seamlessly integrate the external services you need with Mule ESB and its powerful Cloud Connect toolset.

You’ll learn how to use service-specific connectors for many popular APIs—including Salesforce, Twitter, LinkedIn, and Twilio—through easy-to-learn abstractions. If Mule doesn’t have a connector for the resource you need, you’ll learn how to build your own. You’ll discover how easy it is to reach beyond the enterprise firewall for a host of Internet resources.

  • Discover the advantages of using Mule Cloud Connect over typical web service clients and protocols
  • Learn how Cloud Connectors eliminate the need to understand the underlying API of each service
  • Get started with the latest real-time technologies, including REST, WebHooks, and Streaming APIs
  • Integrate OAuth secure APIs and understand their role in authorization and information sharing
  • Delve into advanced topics such as multi-tenancy and connection management
  • Build your own custom connectors with the Mule DevKit

Publisher resources

View/Submit Errata

Table of contents

  1. Preface
    1. From Messaging to Connectivity
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Content Updates
    7. Acknowledgments
  2. 1. Getting Started
    1. Cloud Connectors versus the REST of the World
      1. Transport-Specific Clients
      2. Language-Specific Clients
      3. Service-Specific Client Libraries
      4. Cloud Connectors
    2. Mule: A Primer
      1. Mule Configuration
      2. Flows
      3. Message Sources
      4. Message Processors
      5. Variables and Expressions
        1. Message properties
        2. Additional variables
        3. Storing variable data
          1. Setting properties
          2. Setting variables
          3. Enrichment
        4. Functions
        5. Routing
    3. Summary
  3. 2. Cloud Connectors
    1. Installing Cloud Connectors
      1. Maven
      2. Update Sites
      3. Manual Installation
    2. Namespace and Schema Declarations
    3. Global Configuration
      1. Multiple Connector Configurations
    4. Connector Operations
      1. Simple Arguments
      2. Collections and Structured Arguments
        1. Complex types
        2. Passing by reference
      3. Expression Evaluation
      4. Parsing the Response
    5. Summary
  4. 3. OAuth Connectivity
    1. Configuring OAuth Connectors
      1. Developer and Application Registration
      2. Configuring the Consumer Key and Consumer Secret
    2. Authorizing the Connector
      1. Redirecting for Authorization
      2. Additional Authorization Parameters
        1. state parameter
        2. Custom parameters
      3. Accessing Protected Operations
    3. Customizing the Callback
      1. Customizing the Callback URL
      2. Securing the Callback
    4. Saving and Restoring OAuth State
      1. Automatic State Management
        1. Identifying the user
        2. Overriding the default object store
      2. Manual State Management
      3. Unauthorizing the Connector
    5. Two-Legged OAuth and Other Variations
      1. Developer and Application Registration
      2. Configuring the Access Tokens
      3. Authorizing the Connector
    6. Summary
  5. 4. Connection Management
    1. Configuring Connection Management
      1. Pooling Connections
      2. Connection Parameters
      3. Fine-Tuning the Pool
    2. Reconnection Strategies
      1. Standard Reconnection Strategy
      2. Reconnect Forever Strategy
      3. Custom Reconnection Strategy
    3. Summary
  6. 5. Real-Time Connectivity
    1. Polling Connectors
      1. A Polling Operation
      2. Parsing the Response
        1. Splitting things up
        2. Filtering unique results
    2. Streaming APIs
      1. Configuring Streaming Connectors
      2. Consuming the Stream
      3. Parsing the Stream
    3. WebHooks
      1. Configuring WebHooks
      2. Parsing the Callback
      3. Customizing the Callback
        1. Customizing the callback URL
        2. Securing the callback
    4. Summary
  7. 6. Custom Connectivity
    1. Creating Your First Cloud Connector
      1. Setting Up Your Development Environment
      2. Generating the Skeleton
    2. Connector Annotations
      1. Connectors
        1. @Connector
      2. Connector Configuration
        1. @Configurable
        2. @Optional
        3. @Default
      3. Connector Operations
        1. @Processor
        2. @Source
      4. Connection Management
        1. @Connect
        2. @Disconnect
        3. @ValidateConnection
        4. @ConnectionIdentifier
        5. @InvalidateConnectionOn
      5. Interacting with API
        1. @RestCall
        2. @RestQueryParam
        3. @RestUriParam
    3. Documenting Your Connector
      1. Connectors
      2. Configurable Fields
      3. Message Processors
        1. Sample XML
      4. Generating the Documentation
    4. Building Your Connector
      1. Packaging Your Connector
      2. Installing Your Connector
      3. Publishing Your Connector
    5. Going Further
  8. About the Author
  9. Copyright

Product information

  • Title: Getting Started with Mule Cloud Connect
  • Author(s): Ryan Carter
  • Release date: December 2012
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449331009