Class JsonBatch

  • All Implemented Interfaces:
    Content

    public class JsonBatch
    extends Batch<Content>
    Parser for JSON request.
    • Constructor Detail

      • JsonBatch

        public JsonBatch​(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion,
                         CoreSettings settings,
                         boolean isChangeSet)
    • Method Detail

      • getContent

        public String getContent​(boolean allHeaders)
        Description copied from interface: Content
        Get the String content for response.
        Parameters:
        allHeaders - flag indicating all headers should be included. If the content is going to be added to a HttpServletResponse, the headers need to be set separately.
        Returns:
        The content.
      • getHeaders

        public Map<String,​String> getHeaders()
        Description copied from interface: Content
        Get the headers. This will include the Content-Type header.
        Returns:
        the headers.