nl.pbemengine.engine.ng.base.webserver
Class DirectContent

java.lang.Object
  extended by nl.pbemengine.engine.ng.base.webserver.DirectContent
All Implemented Interfaces:
Content

public class DirectContent
extends java.lang.Object
implements Content

Author:
Jeroen Steenbeeke

Constructor Summary
DirectContent(java.util.Map<java.lang.String,java.lang.String> cookies, java.lang.String mime, byte[] content)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectContent

public DirectContent(java.util.Map<java.lang.String,java.lang.String> cookies,
                     java.lang.String mime,
                     byte[] content)
Method Detail

getCookies

public java.util.Map<java.lang.String,java.lang.String> getCookies()
Description copied from interface: Content
Returns any cookies that should be set

Specified by:
getCookies in interface Content

getMIMEType

public java.lang.String getMIMEType()
Description copied from interface: Content
Returns the MIME type for this content

Specified by:
getMIMEType in interface Content
Returns:
The MIME type for this content

getPage

public java.lang.String getPage()
Description copied from interface: Content
Returns the Page that this Content encapsulates

Specified by:
getPage in interface Content
Returns:
A String containing this page, or null if this page should re-route

getRawContent

public byte[] getRawContent()
Description copied from interface: Content
Returns a RAW version of the content

Specified by:
getRawContent in interface Content
Returns:
An array of bytes with the content


Copyright © 2008. All Rights Reserved.