com.cometway.httpd
Interface HTMLResponseInterface


public interface HTMLResponseInterface

This interface defines an Object that can return the full HTTP response header and body (as HTML), based off of the constants in com.cometway.httpd.WebServer


Method Summary
 java.lang.String getHTMLByCode(int code, java.lang.String keepAliveField, java.lang.String extraHeaders)
          Returns default HTTP response header and body based off of the response code constant and include the given keep alive field and given extra headers in the header.
 

Method Detail

getHTMLByCode

java.lang.String getHTMLByCode(int code,
                               java.lang.String keepAliveField,
                               java.lang.String extraHeaders)
Returns default HTTP response header and body based off of the response code constant and include the given keep alive field and given extra headers in the header. If the keepAliveField and/or extraHeaders are null, they are not to be included in the response header.