|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.stellent.ridc.model.serialize.MultipartPostBinderSerializer
public class MultipartPostBinderSerializer
Serializes a binder over a multipart post
| Constructor Summary | |
|---|---|
MultipartPostBinderSerializer(DataBinder dataBinder) |
|
MultipartPostBinderSerializer(DataBinder dataBinder, String encoding) |
|
| Method Summary | |
|---|---|
long |
countBytes() |
protected void |
createFilePostInfo()Add the file post header information to the map |
protected String |
createFilePostInfo(String name, TransferFile file)Create the post header for the file bytes send along in a multipart post |
protected void |
createPostStr()Package together the local data in a multipost manner |
String |
getBreakString() |
protected byte[] |
getBytes(String str)Utility function to obtain a byte stream based on the encoding set, or to the default system encoding if no encoding is set. |
DataBinder |
getDataBinder() |
String |
getPostString() |
protected void |
prepareBoundary()Create a large, randomly generated boundary string for separation of files and data in this multipart post |
void |
prepareMultipartPost()Prepare this object for a multipart post |
protected void |
sendFiles(OutputStream out)Send along all files into the output stream |
void |
writeBinder(OutputStream out)Write the multipart post out to the given stream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultipartPostBinderSerializer(DataBinder dataBinder)
public MultipartPostBinderSerializer(DataBinder dataBinder,
String encoding)
| Method Detail |
|---|
public DataBinder getDataBinder()
public String getPostString()
public String getBreakString()
public void prepareMultipartPost()
public long countBytes()
public void writeBinder(OutputStream out)
throws IOException
out - the output streamIOExceptionprotected void prepareBoundary()
protected void createPostStr()
protected void createFilePostInfo()
protected String createFilePostInfo(String name,
TransferFile file)
protected void sendFiles(OutputStream out)
throws IOException
IOException
protected byte[] getBytes(String str)
throws UnsupportedEncodingException
str - the string to examineUnsupportedEncodingException
|
Oracle® Fusion Middleware Java API Reference for Oracle WebCenter Content Remote Intradoc Client (RIDC) 11g Release 1 (11.1) E17274-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||