NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.service
Class WindowHtmlService

java.lang.Object
  extended by nextapp.echo.webcontainer.service.WindowHtmlService
All Implemented Interfaces:
Service

public class WindowHtmlService
extends java.lang.Object
implements Service

Completely re-renders a browser window. This is the default service invoked when the user visits an application.


Field Summary
static WindowHtmlService INSTANCE
          Singleton instance.
static java.lang.String ROOT_ELEMENT_ID
          DOM identifier to use for root element.
static java.lang.String XHTML_1_0_NAMESPACE_URI
          The XHTML 1.0 Namespace URI.
static java.lang.String XHTML_1_0_TRANSITIONAL_PUBLIC_ID
          The XHTML 1.0 Transitional Public ID.
static java.lang.String XHTML_1_0_TRANSITIONAL_SYSTSEM_ID
          The XHTML 1.0 Transitional System ID.
 
Fields inherited from interface nextapp.echo.webcontainer.Service
DO_NOT_CACHE
 
Constructor Summary
WindowHtmlService()
           
 
Method Summary
 java.lang.String getId()
          Returns the unique identifier of this service.
 int getVersion()
          Returns the version of the service to be retrieved.
 void service(Connection conn)
          Services an HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XHTML_1_0_TRANSITIONAL_PUBLIC_ID

public static final java.lang.String XHTML_1_0_TRANSITIONAL_PUBLIC_ID
The XHTML 1.0 Transitional Public ID.

See Also:
Constant Field Values

XHTML_1_0_TRANSITIONAL_SYSTSEM_ID

public static final java.lang.String XHTML_1_0_TRANSITIONAL_SYSTSEM_ID
The XHTML 1.0 Transitional System ID.

See Also:
Constant Field Values

XHTML_1_0_NAMESPACE_URI

public static final java.lang.String XHTML_1_0_NAMESPACE_URI
The XHTML 1.0 Namespace URI.

See Also:
Constant Field Values

ROOT_ELEMENT_ID

public static final java.lang.String ROOT_ELEMENT_ID
DOM identifier to use for root element.

See Also:
Constant Field Values

INSTANCE

public static final WindowHtmlService INSTANCE
Singleton instance.

Constructor Detail

WindowHtmlService

public WindowHtmlService()
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Service
Returns the unique identifier of this service.

Specified by:
getId in interface Service
Returns:
the unique identifier of this service
See Also:
Service.getId()

getVersion

public int getVersion()
Description copied from interface: Service
Returns the version of the service to be retrieved. When a service is requested with an updated version number, a non-cached copy will be used. getVersion() should return distinct values whenever the service's content may have changed.

Specified by:
getVersion in interface Service
Returns:
the current version number of the service
See Also:
Service.getVersion()

service

public void service(Connection conn)
             throws java.io.IOException
Description copied from interface: Service
Services an HTTP request. Information about the HTTP request as well as methods for issuing a response are available from the provided Connection object.

Specified by:
service in interface Service
Parameters:
conn - a Connection object which wraps HttpServletRequest and HttpServletResponse objects and provides access to the facilities of the Echo application container
Throws:
java.io.IOException - in the event of errors related to processing the HTTP request or producing a response
See Also:
Service.service(nextapp.echo.webcontainer.Connection)

NextApp Echo3
v3.0.b4