Interface IRestMessage

All Superinterfaces:
Serializable
All Known Subinterfaces:
IRestRequestMessage
All Known Implementing Classes:
RestMessage, RestRequestMessage

public interface IRestMessage extends Serializable
Interface describing a rest message that can be parsed or composed.
Since:
9.0
Author:
Jon van Leuven, Arjan Pragt
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns the body of the message.
    Returns the mime type of the message, or null if not specified.
    This method returns the header names for this request message.
    This method returns the header values for the requested name.
  • Method Details

    • getContentType

      String getContentType()
      Returns the mime type of the message, or null if not specified.
      Returns:
      The mime type, or null.
    • getHeaderNames

      String[] getHeaderNames()
      This method returns the header names for this request message.
      Returns:
      The header names, never null, but may be an empty array.
    • getHeaderValues

      String[] getHeaderValues(String name)
      This method returns the header values for the requested name.
      Parameters:
      name - name of the header
      Returns:
      The header values, may be null.
    • getBody

      String getBody()
      This method returns the body of the message.
      Returns:
      The body of the message, may be null.