Skip navigation links

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

E17274-04


oracle.stellent.ridc.model.serialize
Class MultipartPostBinderSerializer

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


public class MultipartPostBinderSerializer
extends Object

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

MultipartPostBinderSerializer

public MultipartPostBinderSerializer(DataBinder dataBinder)

MultipartPostBinderSerializer

public MultipartPostBinderSerializer(DataBinder dataBinder,
                                     String encoding)

Method Detail

getDataBinder

public DataBinder getDataBinder()

getPostString

public String getPostString()

getBreakString

public 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(OutputStream out)
                 throws IOException
Write the multipart post out to the given stream
Parameters:
out - the output stream
Throws:
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 String createFilePostInfo(String name,
                                    TransferFile file)
Create the post header for the file bytes send along in a multipart post

sendFiles

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

getBytes

protected byte[] getBytes(String str)
                   throws 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:
UnsupportedEncodingException

Skip navigation links

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

E17274-04


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