Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


oracle.stellent.ridc.model.serialize
Class MultipartPostBinderSerializer

java.lang.Object
  extended by oracle.stellent.ridc.model.serialize.MultipartPostBinderSerializer


public class MultipartPostBinderSerializer
extends java.lang.Object

Serializes a binder over a multipart post


Constructor Summary
MultipartPostBinderSerializer(DataBinder dataBinder)
           
MultipartPostBinderSerializer(DataBinder dataBinder, java.lang.String encoding)
           

 

Method Summary
 long countBytes()
           
protected  void createFilePostInfo()
          Add the file post header information to the map
protected  java.lang.String createFilePostInfo(java.lang.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
 java.lang.String getBreakString()
           
protected  byte[] getBytes(java.lang.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()
           
 java.lang.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(java.io.OutputStream out)
          Send along all files into the output stream
 void writeBinder(java.io.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

MultipartPostBinderSerializer

public MultipartPostBinderSerializer(DataBinder dataBinder)

MultipartPostBinderSerializer

public MultipartPostBinderSerializer(DataBinder dataBinder,
                                     java.lang.String encoding)

Method Detail

getDataBinder

public DataBinder getDataBinder()

getPostString

public java.lang.String getPostString()

getBreakString

public java.lang.String getBreakString()

prepareMultipartPost

public void prepareMultipartPost()
Prepare this object for a multipart post

countBytes

public long countBytes()
Returns:
the number of bytes to send for this multipart post

writeBinder

public void writeBinder(java.io.OutputStream out)
                 throws java.io.IOException
Write the multipart post out to the given stream
Parameters:
out - the output stream
Throws:
java.io.IOException

prepareBoundary

protected void prepareBoundary()
Create a large, randomly generated boundary string for separation of files and data in this multipart post

createPostStr

protected void createPostStr()
Package together the local data in a multipost manner

createFilePostInfo

protected void createFilePostInfo()
Add the file post header information to the map

createFilePostInfo

protected java.lang.String createFilePostInfo(java.lang.String name,
                                              TransferFile file)
Create the post header for the file bytes send along in a multipart post

sendFiles

protected void sendFiles(java.io.OutputStream out)
                  throws java.io.IOException
Send along all files into the output stream
Throws:
java.io.IOException

getBytes

protected byte[] getBytes(java.lang.String str)
                   throws java.io.UnsupportedEncodingException
Utility function to obtain a byte stream based on the encoding set, or to the default system encoding if no encoding is set.
Parameters:
str - the string to examine
Returns:
the bytes for the encoding
Throws:
java.io.UnsupportedEncodingException

Skip navigation links

Oracle® WebCenter Content Remote Intradoc Client (RIDC) Java API Reference
11g Release 1 (11.1)

E17274-03


Copyright © 2008, 2011, Oracle and/or its affiliates. All rights reserved.