com.itmill.toolkit.terminal.gwt.server
Class HttpUploadStream

java.lang.Object
  extended by com.itmill.toolkit.terminal.gwt.server.HttpUploadStream
All Implemented Interfaces:
UploadStream

public class HttpUploadStream
extends Object
implements UploadStream

AjaxAdapter implementation of the UploadStream interface.

Since:
5.0
Version:
5.3.0
Author:
IT Mill Ltd.

Constructor Summary
HttpUploadStream(String name, InputStream stream, String contentName, String contentType)
          Creates a new instance of UploadStreamImpl.
 
Method Summary
 String getContentName()
          Gets the stream content name.
 String getContentType()
          Gets the input stream content type.
 InputStream getStream()
          Gets the input stream.
 String getStreamName()
          Gets 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(String name,
                        InputStream stream,
                        String contentName,
                        String contentType)
Creates a new instance of UploadStreamImpl.

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

getStreamName

public String getStreamName()
Gets the name of the stream.

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

getStream

public InputStream getStream()
Gets the input stream.

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

getContentType

public String getContentType()
Gets the input stream content type.

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

getContentName

public String getContentName()
Gets the stream content name. Stream content name usually differs from the actual stream name. It is used to identify the content of the stream.

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


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.