Class HttpSnoopClient


  • public final class HttpSnoopClient
    extends java.lang.Object
    A simple HTTP client that prints out the content of the HTTP response to System.out to test HttpSnoopServer.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static java.lang.String URL  
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpSnoopClient()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

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

      • URL

        static final java.lang.String URL
    • Constructor Detail

      • HttpSnoopClient

        public HttpSnoopClient()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception