org.apache.synapse.commons.emulator.http.dsl.dto.producer

## Class OutgoingMessage

- java.lang.Object
- - org.apache.synapse.commons.emulator.http.dsl.dto.producer.OutgoingMessage

-     public class OutgoingMessage
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OutgoingMessage()`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getBody()`
    `java.util.List<Header>` | `getHeaders()`
    `io.netty.handler.codec.http.HttpResponseStatus` | `getStatusCode()`
    `static OutgoingMessage` | `response()`
    `OutgoingMessage` | `withBody(java.lang.String body)`
    `OutgoingMessage` | `withHeader(java.lang.String name, java.lang.String value)`
    `OutgoingMessage` | `withHeaders(Header... headers)`
    `OutgoingMessage` | `withStatusCode(io.netty.handler.codec.http.HttpResponseStatus statusCode)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OutgoingMessage

          public OutgoingMessage()

  - ### Method Detail

    - #### response

          public static OutgoingMessage response()

    - #### withStatusCode

          public OutgoingMessage withStatusCode(io.netty.handler.codec.http.HttpResponseStatus statusCode)

    - #### withHeader

          public OutgoingMessage withHeader(java.lang.String name,
                                            java.lang.String value)

    - #### withHeaders

          public OutgoingMessage withHeaders(Header... headers)

    - #### withBody

          public OutgoingMessage withBody(java.lang.String body)

    - #### getStatusCode

          public io.netty.handler.codec.http.HttpResponseStatus getStatusCode()

    - #### getHeaders

          public java.util.List<Header> getHeaders()

    - #### getBody

          public java.lang.String getBody()

Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.