nl.pbemengine.engine.ng.base.webserver
Interface Content

All Known Implementing Classes:
DirectContent, PrintContent, ShutdownContent

public interface Content

Interface representing the content of a web page. The Web Page should be given in a single string format, but not everyone enjoys working with Strings directly - so instead of forcing them to use Strings directly, they can implement this interface on top of their favorite choice of editing class, for instance a PrintStream.

Author:
Jeroen Steenbeeke

Method Summary
 java.util.Map<java.lang.String,java.lang.String> getCookies()
          Returns any cookies that should be set
 java.lang.String getMIMEType()
          Returns the MIME type for this content
 java.lang.String getPage()
          Returns the Page that this Content encapsulates
 byte[] getRawContent()
          Returns a RAW version of the content
 

Method Detail

getPage

java.lang.String getPage()
Returns the Page that this Content encapsulates

Returns:
A String containing this page, or null if this page should re-route

getRawContent

byte[] getRawContent()
Returns a RAW version of the content

Returns:
An array of bytes with the content

getMIMEType

java.lang.String getMIMEType()
Returns the MIME type for this content

Returns:
The MIME type for this content

getCookies

java.util.Map<java.lang.String,java.lang.String> getCookies()
Returns any cookies that should be set



Copyright © 2008. All Rights Reserved.