Class RESTfulReply


  • public class RESTfulReply
    extends java.lang.Object
    The class holding the reply from a RESTful request.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.lang.StringformatHTTPReply()
      Formats the URLConnection HTTP headers reply into a String.
      IReplyContentprocessReply​(java.util.List<IReplyContent> replyContents)
      Processes the URL connection to read the data for the request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • processReply

        public IReplyContent processReply​(java.util.List<IReplyContent> replyContents)
                                   throws java.io.IOException
        Processes the URL connection to read the data for the request.
        Parameters:
        replyContents - The available reply content parsers.
        Returns:
        The reply content that processed the reply.
        Throws:
        java.io.IOException - For I/O errors.
      • formatHTTPReply

        public java.lang.String formatHTTPReply()
        Formats the URLConnection HTTP headers reply into a String.
        Returns:
        The formatted HTML reply string.