fr.ifremer.wao.ui.data
Class KmlStreamResponse

java.lang.Object
  extended by fr.ifremer.wao.ui.data.KmlStreamResponse
All Implemented Interfaces:
org.apache.tapestry5.StreamResponse

public class KmlStreamResponse
extends java.lang.Object
implements org.apache.tapestry5.StreamResponse

StreamResponse for Kml files.

Created: 6 juil. 2010

Version:
$Id$
Author:
fdesbois
See Also:
KmlLoaderStrategy, KmlLoader

Field Summary
protected  int length
           
protected  java.io.InputStream stream
           
 
Constructor Summary
KmlStreamResponse(java.io.InputStream stream)
           
 
Method Summary
 java.lang.String getContentType()
           
 java.io.InputStream getStream()
           
 void prepareResponse(org.apache.tapestry5.services.Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stream

protected java.io.InputStream stream

length

protected int length
Constructor Detail

KmlStreamResponse

public KmlStreamResponse(java.io.InputStream stream)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface org.apache.tapestry5.StreamResponse

getStream

public java.io.InputStream getStream()
                              throws java.io.IOException
Specified by:
getStream in interface org.apache.tapestry5.StreamResponse
Throws:
java.io.IOException

prepareResponse

public void prepareResponse(org.apache.tapestry5.services.Response response)
Specified by:
prepareResponse in interface org.apache.tapestry5.StreamResponse


Copyright © 2009-2010 Ifremer. All Rights Reserved.