xmlBlaster 2.2.0 API

org.xmlBlaster.util.http
Class HttpResponse

java.lang.Object
  extended by org.xmlBlaster.util.http.HttpResponse

public class HttpResponse
extends java.lang.Object

Used for returning the HTML page and mime type of a HTTP request.

Author:
Marcel Ruff.

Field Summary
(package private)  byte[] content
           
(package private)  java.lang.String mimeType
           
 
Constructor Summary
HttpResponse(byte[] content)
           
HttpResponse(byte[] content, java.lang.String mimeType)
           
HttpResponse(java.lang.String text)
           
HttpResponse(java.lang.String text, java.lang.String mimeType)
           
 
Method Summary
 byte[] getContent()
           
 java.lang.String getContentStr()
           
 java.lang.String getMimeType()
           
 void setMimeType(java.lang.String mimeType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

byte[] content

mimeType

java.lang.String mimeType
Constructor Detail

HttpResponse

public HttpResponse(java.lang.String text)

HttpResponse

public HttpResponse(java.lang.String text,
                    java.lang.String mimeType)

HttpResponse

public HttpResponse(byte[] content)

HttpResponse

public HttpResponse(byte[] content,
                    java.lang.String mimeType)
Method Detail

setMimeType

public void setMimeType(java.lang.String mimeType)

getMimeType

public java.lang.String getMimeType()

getContent

public byte[] getContent()

getContentStr

public java.lang.String getContentStr()

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.