org.apache.lens.server.model
Class LensContainerRequest
java.lang.Object
org.apache.lens.server.model.LensContainerRequest
public class LensContainerRequest
- extends Object
Wrapper class for ContainerRequest.
Has helper methods to give form data values for the request. More helper methods can be included.
Method Summary |
|
getFormData(Class<T> clz)
Utility method for reading form/multipart-form data from container request. |
com.google.common.base.Optional<String> |
getFormDataFieldValue(String fieldName)
parses form data as multipart form data and extracts the value of given fieldName from it. |
LensContainerRequest
public LensContainerRequest()
getFormDataFieldValue
public com.google.common.base.Optional<String> getFormDataFieldValue(String fieldName)
- parses form data as multipart form data and extracts the value of given fieldName from it.
- Parameters:
fieldName
-
- Returns:
- Optional value of field passed as multipart post data
getFormData
public <T> T getFormData(Class<T> clz)
- Utility method for reading form/multipart-form data from container request.
- Type Parameters:
T
- clz type- Parameters:
clz
- Either Form.class or FormDataMultiPart.class
- Returns:
- an instance of T
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.