org.millstone.webadapter
Class HttpUploadStream

java.lang.Object
  |
  +--org.millstone.webadapter.HttpUploadStream
All Implemented Interfaces:
UploadStream

public class HttpUploadStream
extends java.lang.Object
implements UploadStream

WebAdapter implementation of the UploadStream interface.

Since:
3.0
Version:
3.0.3
Author:
IT Mill Ltd.

Constructor Summary
HttpUploadStream(java.lang.String name, java.io.InputStream stream, java.lang.String contentName, java.lang.String contentType)
          Creates a new instance of UploadStreamImpl
 
Method Summary
 java.lang.String getContentName()
          Get stream content name.
 java.lang.String getContentType()
          Get input stream content type.
 java.io.InputStream getStream()
          Get input stream.
 java.lang.String getStreamName()
          Get the name of the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUploadStream

public HttpUploadStream(java.lang.String name,
                        java.io.InputStream stream,
                        java.lang.String contentName,
                        java.lang.String contentType)
Creates a new instance of UploadStreamImpl

Parameters:
name - of the stream
stream - input stream
contentName - name of the content
contentType - type of the content
Method Detail

getStreamName

public java.lang.String getStreamName()
Get the name of the stream.

Specified by:
getStreamName in interface UploadStream
Returns:
name of the stream.

getStream

public java.io.InputStream getStream()
Get input stream.

Specified by:
getStream in interface UploadStream
Returns:
Input stream.

getContentType

public java.lang.String getContentType()
Get input stream content type.

Specified by:
getContentType in interface UploadStream
Returns:
content type of the input stream.

getContentName

public java.lang.String getContentName()
Get stream content name. Stream content name usually differs from the actual stream name. it is used toi identify the content of the stream.

Specified by:
getContentName in interface UploadStream
Returns:
Name of the stream content.


Copyright © 2000,2001,2002 IT Mill Ltd. All Rights Reserved.