Class ContainerRequestParameter
java.lang.Object
org.apache.sling.engine.impl.parameters.ContainerRequestParameter
- All Implemented Interfaces:
- RequestParameter
The 
ContainerRequestParameter TODO- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbyte[]get()Returns the contents of the parameter as an array of bytes.Returns the content type passed by the browser ornullif not defined.Returns the original filename in the client's filesystem, as provided by the browser (or other client software).Returns an InputStream that can be used to retrieve the contents of the file.getName()longgetSize()Returns the size in bytes of the parameter.Returns the contents of the parameter as a String, using the default character encoding.Returns the contents of the parameter as a String, using the specified encoding.booleanDetermines whether or not this instance represents a simple form field or an uploaded file.voidsetEncoding(String encoding) toString()
- 
Constructor Details- 
ContainerRequestParameter
 
- 
- 
Method Details- 
setEncoding
- 
getpublic byte[] get()Description copied from interface:RequestParameterReturns the contents of the parameter as an array of bytes.- Returns:
- The contents of the parameter as an array of bytes.
- See Also:
 
- 
getContentTypeDescription copied from interface:RequestParameterReturns the content type passed by the browser ornullif not defined.- Returns:
- The content type passed by the browser or nullif not defined.
- See Also:
 
- 
getInputStreamDescription copied from interface:RequestParameterReturns an InputStream that can be used to retrieve the contents of the file.Each call to this method returns a new InputStreamto the request parameter data. Make sure to close the stream to prevent leaking resources.- Returns:
- An InputStream that can be used to retrieve the contents of the file.
- See Also:
 
- 
getFileNameDescription copied from interface:RequestParameterReturns the original filename in the client's filesystem, as provided by the browser (or other client software). In most cases, this will be the base file name, without path information. However, some clients, such as the Opera browser, do include path information.- Returns:
- The original filename in the client's filesystem.
- See Also:
 
- 
getSizepublic long getSize()Description copied from interface:RequestParameterReturns the size in bytes of the parameter.- Returns:
- The size in bytes of the parameter.
- See Also:
 
- 
getStringDescription copied from interface:RequestParameterReturns the contents of the parameter as a String, using the default character encoding. This method usesRequestParameter.get()to retrieve the contents of the item.- Returns:
- The contents of the parameter, as a string.
- See Also:
 
- 
getStringDescription copied from interface:RequestParameterReturns the contents of the parameter as a String, using the specified encoding. This method uses linkRequestParameter.get()to retrieve the contents of the item.- Parameters:
- encoding- The character encoding to use.
- Returns:
- The contents of the parameter, as a string.
- Throws:
- UnsupportedEncodingException- if the requested character encoding is not available.
- See Also:
 
- 
isFormFieldpublic boolean isFormField()Description copied from interface:RequestParameterDetermines whether or not this instance represents a simple form field or an uploaded file.- Returns:
- trueif the instance represents a simple form field;- falseif it represents an uploaded file.
- See Also:
 
- 
toString
- 
getName- Specified by:
- getNamein interface- RequestParameter
- Returns:
- the name of this RequestParameter
 
- 
getEncoding
 
-