org.naokishibata.generic
Class TinyHttpd.Response

java.lang.Object
  extended by org.naokishibata.generic.TinyHttpd.Response
Enclosing class:
TinyHttpd

public static class TinyHttpd.Response
extends java.lang.Object

This class represents a HTTP response given by this server class


Method Summary
static TinyHttpd.Response response200(java.lang.String encoding, byte[] body)
          Generates a 200 response
static TinyHttpd.Response response204()
          Generates a 204 response
static TinyHttpd.Response response404()
          Generates a 404 response
static TinyHttpd.Response response405()
          Generates a 405 response
static TinyHttpd.Response response500()
          Generates a 500 response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

response404

public static TinyHttpd.Response response404()
Generates a 404 response


response405

public static TinyHttpd.Response response405()
Generates a 405 response


response200

public static TinyHttpd.Response response200(java.lang.String encoding,
                                             byte[] body)
Generates a 200 response

Parameters:
encoding - Content encoding
body - Entity body

response204

public static TinyHttpd.Response response204()
Generates a 204 response


response500

public static TinyHttpd.Response response500()
Generates a 500 response