de.phleisch.app.itsucks.io.http.impl
Class HttpMetadata

java.lang.Object
  extended by de.phleisch.app.itsucks.io.http.impl.HttpMetadata
All Implemented Interfaces:
Metadata

public class HttpMetadata
extends java.lang.Object
implements Metadata

Metadata for an http connection.

Author:
olli

Constructor Summary
HttpMetadata()
           
 
Method Summary
 long getContentLength()
          Gets the content length of an file (if available).
 java.lang.String getContentType()
          Gets the content type of the file.
 java.lang.String getEncoding()
          Gets the file encoding.
 java.lang.String[] getResponseHeaderField(java.lang.String pName)
          Gets an http repsonse header field.
 int getStatusCode()
          Returns the http status code.
 java.lang.String getStatusText()
          Gets the status text.
 void setConnection(org.apache.commons.httpclient.HttpMethodBase pConnection)
          Sets the http conecction.
 void setContentLength(long contentLength)
          Sets the content length of an file.
 void setContentType(java.lang.String mimetype)
          Sets the content type of the file.
 void setStatusCode(int statusCode)
          Sets the http status code.
 void setStatusText(java.lang.String pStatusText)
          Sets the status text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpMetadata

public HttpMetadata()
Method Detail

getContentType

public java.lang.String getContentType()
Gets the content type of the file.

Returns:

setContentType

public void setContentType(java.lang.String mimetype)
Sets the content type of the file.

Parameters:
mimetype -

getContentLength

public long getContentLength()
Gets the content length of an file (if available).

Returns:

setContentLength

public void setContentLength(long contentLength)
Sets the content length of an file.

Parameters:
contentLength -

getStatusCode

public int getStatusCode()
Returns the http status code.

Returns:

setStatusCode

public void setStatusCode(int statusCode)
Sets the http status code.

Parameters:
statusCode -

getStatusText

public java.lang.String getStatusText()
Gets the status text.

Returns:

setStatusText

public void setStatusText(java.lang.String pStatusText)
Sets the status text.

Parameters:
pStatusText -

setConnection

public void setConnection(org.apache.commons.httpclient.HttpMethodBase pConnection)
Sets the http conecction.

Parameters:
pConnection -

getEncoding

public java.lang.String getEncoding()
Gets the file encoding.

Returns:

getResponseHeaderField

public java.lang.String[] getResponseHeaderField(java.lang.String pName)
Gets an http repsonse header field.

Parameters:
pName -
Returns:


Copyright © 2008. All Rights Reserved.