Skip navigation links
oracle.stellent.ridc.protocol.http.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.obj.HdaFilePart
-
public class HdaFilePart
- extends org.apache.commons.httpclient.methods.multipart.FilePart
Fields inherited from class org.apache.commons.httpclient.methods.multipart.FilePart |
DEFAULT_CHARSET, DEFAULT_CONTENT_TYPE, DEFAULT_TRANSFER_ENCODING, FILE_NAME |
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 |
Method Summary |
static byte[] |
getCharsetBytes(java.lang.String data, java.lang.String charset)
Converts the specified string to byte array of ASCII characters. |
java.lang.String |
getTransferEncoding()
Returns the transfer encoding of this part. |
protected void |
sendDispositionHeader(java.io.OutputStream out)
Write the disposition header to the output stream |
Methods inherited from class org.apache.commons.httpclient.methods.multipart.FilePart |
getSource, lengthOfData, sendData |
Methods inherited from class org.apache.commons.httpclient.methods.multipart.PartBase |
getCharSet, getContentType, getName, setCharSet, setContentType, setName, setTransferEncoding |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HdaFilePart
public HdaFilePart(java.lang.String name,
TransferFile fileInfo,
java.lang.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(java.lang.String name,
TransferFile fileInfo)
- FilePart Constructor.
- Parameters:
name
- the parameter name
fileInfo
- the IDataFile object describing the file to publish
getTransferEncoding
public java.lang.String getTransferEncoding()
- Returns the transfer encoding of this part.
-
- Overrides:
getTransferEncoding
in class org.apache.commons.httpclient.methods.multipart.PartBase
-
- Returns:
- String The name.
sendDispositionHeader
protected void sendDispositionHeader(java.io.OutputStream out)
throws java.io.IOException
- Write the disposition header to the output stream
-
- Overrides:
sendDispositionHeader
in class org.apache.commons.httpclient.methods.multipart.FilePart
-
- Parameters:
out
- The output stream
- Throws:
java.io.IOException
- If an IO problem occurs
getCharsetBytes
public static byte[] getCharsetBytes(java.lang.String data,
java.lang.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, 2011, Oracle and/or its affiliates. All rights reserved.