Class HttpContent

    • Constructor Detail

      • HttpContent

        public HttpContent​(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion)
      • HttpContent

        public HttpContent​(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion,
                           boolean requireContentId)
    • Method Detail

      • getPath

        public String getPath()
        Get the path part of the http request.
        Overrides:
        getPath in class Request
        Returns:
        the URL part of the http request.
      • getData

        public String getData()
        Get the data in the http request. This does not include the outer headers, command, nor inner headers.
        Overrides:
        getData in class Request
        Returns:
        The data in http request.
      • getContentIdValue

        public de.fraunhofer.iosb.ilt.frostserver.model.core.Id getContentIdValue()
        Overrides:
        getContentIdValue in class Request
      • setContentIdValue

        public void setContentIdValue​(de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue)
        Overrides:
        setContentIdValue in class Request
      • getStatusLine

        public String getStatusLine()
      • setStatusLine

        public void setStatusLine​(String statusLine)
      • getContent

        public String getContent​(boolean allHeaders)
        Description copied from interface: Content
        Get the String content for response.
        Specified by:
        getContent in interface Content
        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.
      • stripLastNewline

        public void stripLastNewline()
        Description copied from interface: MultipartContent
        Informs the Content that the last newline should be removed again. The newline before a boundary is part of the boundary, not of the content.
        Specified by:
        stripLastNewline in interface MultipartContent