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 getFilename()
          Returns the filename of the url object.
 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 setContentLength(long contentLength)
          Sets the content length of an file.
 void setContentType(java.lang.String mimetype)
          Sets the content type of the file.
 void setEncoding(java.lang.String pEncoding)
           
 void setFilename(java.lang.String pFilename)
           
 void setResponseHeader(java.util.Map<java.lang.String,java.lang.String[]> pHeaders)
           
 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 -

getEncoding

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

Returns:

setEncoding

public void setEncoding(java.lang.String pEncoding)

getResponseHeaderField

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

Parameters:
pName -
Returns:

setResponseHeader

public void setResponseHeader(java.util.Map<java.lang.String,java.lang.String[]> pHeaders)

getFilename

public java.lang.String getFilename()
Returns the filename of the url object.

Specified by:
getFilename in interface Metadata
Returns:

setFilename

public void setFilename(java.lang.String pFilename)


Copyright © 2010. All Rights Reserved.