Package com.google.code.http4j

Examples of com.google.code.http4j.StatusLine


    assertion("HTTP/1.1  204  No Content", "HTTP/1.1", 204, "No Content");
  }
 
  private void assertion(String source, String version, int statusCode, String reason) throws IOException {
    byte[] line = source.getBytes();
    StatusLine statusLine = parser.parse(line);
    Assert.assertNotNull(statusLine);
    Assert.assertEquals(statusLine.getVersion(), version);
    Assert.assertEquals(statusLine.getStatusCode(), statusCode);
    Assert.assertEquals(statusLine.getReason(), reason);
  }
View Full Code Here

TOP

Related Classes of com.google.code.http4j.StatusLine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.