org.apache.wink.common.model.multipart
Class OutMultiPart
java.lang.Object
org.apache.wink.common.model.multipart.OutMultiPart
- Direct Known Subclasses:
- BufferedOutMultiPart
public abstract class OutMultiPart
- extends Object
An abstract class to generate a MultiPart response, the concept behind this
class been abstract is that there might be simple implementation over a
collection or more complex once like over a database cursor
- Author:
- elib
Method Summary |
String |
getBoundary()
|
protected abstract Iterator<? extends OutPart> |
getIterator()
An implementation of this method should return an iterator over the
OutPart of the message, this iterator is used to serialized the
message |
void |
setBoundary(String boundary)
set the boundary to be used to separate between the different parts |
void |
write(OutputStream os,
javax.ws.rs.ext.Providers providers)
This method write the multiPart message to the os stream, it make a usage
of the providers for the serialization of the parts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SEP
public static final String SEP
- See Also:
- Constant Field Values
OutMultiPart
public OutMultiPart()
setBoundary
public void setBoundary(String boundary)
- set the boundary to be used to separate between the different parts
- Parameters:
boundary
-
getBoundary
public String getBoundary()
getIterator
protected abstract Iterator<? extends OutPart> getIterator()
- An implementation of this method should return an iterator over the
OutPart
of the message, this iterator is used to serialized the
message
- Returns:
write
public void write(OutputStream os,
javax.ws.rs.ext.Providers providers)
throws IOException
- This method write the multiPart message to the os stream, it make a usage
of the providers for the serialization of the parts
- Parameters:
os
- providers
-
- Throws:
IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.