How to define the HTTP Response content with the HttpGateway in JBoss SOA-P 5?

Solution Unverified - Updated -

Issue

There is a synchronous HttpGateway action. When trying to control the html returned it is not obvious how to do this. Looking at the documentation it appears it can be done:

    HttpResponse responseInfo = new HttpResponse(HttpServletResponse.SC_OK);

    responseInfo.setContentType("text/xml");
    // Set other response info ...

    // Set the HttpResponse instance on the ESB response Message instance
    responseInfo.setResponse(responseMessage);

But when the HttpResponse class is examined, it is not seen how to set the html.

Environment

  • JBoss Enterprise SOA Platform (SOA-P) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content