org.apache.lens.server.model
Class LensContainerRequest

java.lang.Object
  extended by 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.


Constructor Summary
LensContainerRequest()
           
 
Method Summary
<T> T
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LensContainerRequest

public LensContainerRequest()
Method Detail

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.