|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.flume.sink.solr.morphline.BlobHandler
public class BlobHandler
BlobHandler for HTTPSource that returns event that contains the request parameters as well as the Binary Large Object (BLOB) uploaded with this request.
Note that this approach is not suitable for very large objects because it buffers up the entire BLOB.
Example client usage:
curl --data-binary @sample-statuses-20120906-141433-medium.avro 'http://127.0.0.1:5140?resourceName=sample-statuses-20120906-141433-medium.avro' --header 'Content-Type:application/octet-stream' --verbose
Field Summary | |
---|---|
static int |
MAX_BLOB_LENGTH_DEFAULT
|
static String |
MAX_BLOB_LENGTH_KEY
|
Constructor Summary | |
---|---|
BlobHandler()
|
Method Summary | |
---|---|
void |
configure(Context context)
Request the implementing class to (re)configure itself. |
List<Event> |
getEvents(javax.servlet.http.HttpServletRequest request)
Takes an HttpServletRequest and returns a list of Flume Events. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String MAX_BLOB_LENGTH_KEY
public static final int MAX_BLOB_LENGTH_DEFAULT
Constructor Detail |
---|
public BlobHandler()
Method Detail |
---|
public void configure(Context context)
Configurable
Request the implementing class to (re)configure itself.
When configuration parameters are changed, they must be reflected by the component asap.
There are no thread safety guarrantees on when configure might be called.
configure
in interface Configurable
public List<Event> getEvents(javax.servlet.http.HttpServletRequest request) throws Exception
HTTPSourceHandler
getEvents
in interface HTTPSourceHandler
request
- The request to be parsed into Flume events.
HTTPBadRequestException
- If the was not parsed correctly into an
event because the request was not in the expected format.
Exception
- If there was an unexpected error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |