How can I access HTTP request info within SwitchYard component in FSW?

Solution Verified - Updated -

Issue

  • I want to get request information from HTTP request in a SwitchYard component as follows:
String requestUrl = requestInfo.getRequestURI();
List<String> pathInfoTokens = requestInfo.getPathInfoTokens();
...
  • How can I do it in SwitchYard?
  • How can we access the client ip address in Switchyard?

Environment

  • Red Hat JBoss Fuse Service Works (FSW)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.