Skip navigation links
oracle.stellent.ridc.protocol.http.apache3.obj
Class HdaFilePart
java.lang.Object
org.apache.commons.httpclient.methods.multipart.Part
org.apache.commons.httpclient.methods.multipart.PartBase
org.apache.commons.httpclient.methods.multipart.FilePart
oracle.stellent.ridc.protocol.http.apache3.obj.HdaFilePart
-
public class HdaFilePart
- extends FilePart
Fields inherited from class org.apache.commons.httpclient.methods.multipart.Part |
BOUNDARY, BOUNDARY_BYTES, CHARSET, CHARSET_BYTES, CONTENT_DISPOSITION, CONTENT_DISPOSITION_BYTES, CONTENT_TRANSFER_ENCODING, CONTENT_TRANSFER_ENCODING_BYTES, CONTENT_TYPE, CONTENT_TYPE_BYTES, CRLF, CRLF_BYTES, EXTRA, EXTRA_BYTES, QUOTE, QUOTE_BYTES |
Methods inherited from class org.apache.commons.httpclient.methods.multipart.Part |
getBoundary, getLengthOfParts, getLengthOfParts, getPartBoundary, isRepeatable, length, send, sendContentTypeHeader, sendEnd, sendEndOfHeader, sendParts, sendParts, sendStart, sendTransferEncodingHeader, toString |
HdaFilePart
public HdaFilePart(String name,
TransferFile fileInfo,
String charset)
- FilePart Constructor.
- Parameters:
name
- the parameter name
fileInfo
- the IDataFile object describing the file to publish
charset
- encoding for the filename
HdaFilePart
public HdaFilePart(String name,
TransferFile fileInfo)
- FilePart Constructor.
- Parameters:
name
- the parameter name
fileInfo
- the IDataFile object describing the file to publish
getTransferEncoding
public String getTransferEncoding()
- Returns the transfer encoding of this part.
-
- Overrides:
getTransferEncoding
in class PartBase
-
- Returns:
- String The name.
sendDispositionHeader
protected void sendDispositionHeader(OutputStream out)
throws IOException
- Write the disposition header to the output stream
-
- Overrides:
sendDispositionHeader
in class FilePart
-
- Parameters:
out
- The output stream
- Throws:
IOException
- If an IO problem occurs
getCharsetBytes
public static byte[] getCharsetBytes(String data,
String charset)
- Converts the specified string to byte array of ASCII characters.
-
- Parameters:
data
- the string to be encoded
charset
- the charset of the encoding, if null, "UTF-8" is assumed
- Returns:
- The string as a byte array.
- Since:
- 3.0
Skip navigation links
Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.