|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream com.ibm.portal.resolver.streams.MultipartInputStream.Entry com.ibm.portal.resolver.streams.FormDataInputStream.Entry
public abstract static class FormDataInputStream.Entry
Extension of the MultipartInputStream.Entry
that adds information
about the parameter name and characterset. All methods that access the
content of the entry apply to this entry only, i.e. do not span neither
headers nor the boundary. The FormDataInputStream.Entry
stream can be closed without
closing the outer FormDataInputStream
.
Constructor Summary | |
---|---|
FormDataInputStream.Entry()
|
Method Summary | |
---|---|
abstract java.nio.charset.Charset |
getCharset()
Returns the characterset used to decode the value. |
abstract javax.mail.internet.ContentDisposition |
getContentDisposition()
The decoded content disposition, will always be available, because otherwise the mime entry would not habe been recognized as a valid multipart/form-data entry. |
abstract java.lang.String |
getName()
The name of the entry field, will always be available for a valid multipart/form-data entry. |
abstract java.lang.String |
getNonce()
Returns the nonce for the input stream. |
abstract int |
read(java.io.Writer dst)
Deprecated. use write(Writer) instead due to more consistent
naming |
abstract java.lang.String |
readString()
Reads the value of the field as a string |
abstract void |
write(java.io.Writer dst)
Copies the content of the entry in the current characterset to the output writer |
Methods inherited from class com.ibm.portal.resolver.streams.MultipartInputStream.Entry |
---|
close, write |
Methods inherited from class java.io.InputStream |
---|
available, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.portal.resolver.streams.MultipartStream.Entry |
---|
getContentType, getNames, iterator |
Methods inherited from interface com.ibm.portal.MetaData |
---|
getValue |
Methods inherited from interface java.nio.channels.Channel |
---|
isOpen |
Constructor Detail |
---|
public FormDataInputStream.Entry()
Method Detail |
---|
public abstract java.nio.charset.Charset getCharset()
FormDataStream.KEY_CHARSET
parameter or it will default to
UTF8.
null
public abstract javax.mail.internet.ContentDisposition getContentDisposition()
null
public abstract java.lang.String getName()
null
public abstract java.lang.String getNonce()
FormDataStream.KEY_CSRF_TOKEN
parameter or
it will be null
. A special case exists if the stream was
constructed on top of an ActionRequest
. Since such a request
is already protected against CSRF attacks, this method will return
the default nonce for the current user even in case the stream does
not include the FormDataStream.KEY_CSRF_TOKEN
parameter.
null
if the stream does not contain
a nonce@Deprecated public abstract int read(java.io.Writer dst) throws java.io.IOException
write(Writer)
instead due to more consistent
naming
dst
- target writer, not null
java.io.IOException
- - if the data could not be read or copiedpublic abstract java.lang.String readString() throws java.io.IOException
java.io.IOException
- if an I/O error has occurredpublic abstract void write(java.io.Writer dst) throws java.io.IOException
dst
- target writer, not null
java.io.IOException
- - if the data could not be read or copied
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |