webcore.webserver
Interface WebRequestable

All Known Implementing Classes:
Attachment, Contact, ContextModel, Example, HTTPFileRetriever, Login, Main, Message, Profile, Settings, SSLRedirector, View, Write

public interface WebRequestable

interface for all requestable objects via the webserver. ServerSide java must implement this interface to process http requests.


Field Summary
static java.lang.String htmlBaseHeader
          The header for an HTTP response with the Content-type of text/html.
static java.lang.String htmlHeader
          The header for an HTTP response for HTML with a Content-type of text/html.
static java.lang.String httpBaseHeader
          The first line of an HTTP header response
static java.lang.String httpHeader
          for backward compatability
static java.lang.String submitjavascript
          JavaScript for the function: submittedform() which will be executed when a form is submitted.
static java.lang.String submitjavascripttag
          JavaScript entry to be added into FORM tags to make the forms execute the sumittedform() JavaScript function
static java.lang.String textBaseHeader
          The header for an HTTP response for plain text, with a Content-type of text/plain.
static java.lang.String textHeader
          The header for an HTTP response with the Content-type of text/plain.
 
Method Summary
 void processRequest(HTTPRequest request)
          This method is called by the Webserver when the WebRequestable is requested by a client.
 

Field Detail

submitjavascripttag

public static final java.lang.String submitjavascripttag
JavaScript entry to be added into FORM tags to make the forms execute the sumittedform() JavaScript function

See Also:
Constant Field Values

submitjavascript

public static final java.lang.String submitjavascript
JavaScript for the function: submittedform() which will be executed when a form is submitted. This text should be output before the BODY tag in the HTML code. The submittedform() JavaScript function makes sure a FORM only gets submitted once, and displays an error dialog if an attempt is made to submit a second time.

See Also:
Constant Field Values

httpBaseHeader

public static final java.lang.String httpBaseHeader
The first line of an HTTP header response

See Also:
Constant Field Values

htmlBaseHeader

public static final java.lang.String htmlBaseHeader
The header for an HTTP response with the Content-type of text/html. It has one (CR-LF) after the Content-type tag. Use this constant when responding to clients if you want to add more HTTP information to the header. Otherwise, use htmlHeader.

See Also:
Constant Field Values

htmlHeader

public static final java.lang.String htmlHeader
The header for an HTTP response for HTML with a Content-type of text/html. It has two (CR-LF) after the Content-type tag. After outputing this constant to the client, the client is ready for the data part of the HTTP response. (That is, the header is complete.)

See Also:
Constant Field Values

httpHeader

public static final java.lang.String httpHeader
for backward compatability

See Also:
Constant Field Values

textBaseHeader

public static final java.lang.String textBaseHeader
The header for an HTTP response for plain text, with a Content-type of text/plain. It has one (CR-LF) after the Content-type tag. Use this constant when responding to clients if you want to add more HTTP information to the header. Otherwise, use textHeader.

See Also:
Constant Field Values

textHeader

public static final java.lang.String textHeader
The header for an HTTP response with the Content-type of text/plain. It has two (CR-LF) after the Content-type tag. After outputing this constant to the client, the client is ready for the data part of the HTTP response. (That is, the header is complete.)

See Also:
Constant Field Values
Method Detail

processRequest

public void processRequest(HTTPRequest request)
                    throws java.lang.Exception
This method is called by the Webserver when the WebRequestable is requested by a client.

java.lang.Exception