|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.engine.impl.parameters.ContainerRequestParameter
public class ContainerRequestParameter
The ContainerRequestParameter
TODO
Method Summary | |
---|---|
byte[] |
get()
Returns the contents of the parameter as an array of bytes. |
String |
getContentType()
Returns the content type passed by the browser or null if
not defined. |
String |
getFileName()
Returns the original filename in the client's filesystem, as provided by the browser (or other client software). |
InputStream |
getInputStream()
Returns an InputStream that can be used to retrieve the contents of the file. |
long |
getSize()
Returns the size in bytes of the parameter. |
String |
getString()
Returns the contents of the parameter as a String, using the default character encoding. |
String |
getString(String encoding)
Returns the contents of the parameter as a String, using the specified encoding. |
boolean |
isFormField()
Determines whether or not this instance represents a simple form field or an uploaded file. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public byte[] get()
RequestParameter
RequestParameter.get()
public String getContentType()
RequestParameter
null
if
not defined.
null
if
not defined.RequestParameter.getContentType()
public InputStream getInputStream()
RequestParameter
RequestParameter.getInputStream()
public String getFileName()
RequestParameter
RequestParameter.getFileName()
public long getSize()
RequestParameter
RequestParameter.getSize()
public String getString()
RequestParameter
RequestParameter.get()
to retrieve the
contents of the item.
RequestParameter.getString()
public String getString(String encoding) throws UnsupportedEncodingException
RequestParameter
RequestParameter.get()
to retrieve the contents
of the item.
encoding
- The character encoding to use.
UnsupportedEncodingException
- if the requested character encoding
is not available.RequestParameter.getString(java.lang.String)
public boolean isFormField()
RequestParameter
true
if the instance represents a simple form
field; false
if it represents an uploaded file.RequestParameter.isFormField()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |