|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.http.server.util.ARequestHandler
org.eclipse.smila.http.server.json.JsonBulkRequestHandler
org.eclipse.smila.bulkbuilder.httphandler.BulkbuilderBurstHandler
public class BulkbuilderBurstHandler
Implements the processing of HTTP requests for the bulk processing.
| Field Summary | |
|---|---|
static java.lang.String |
KEY_WORKFLOW_RUNS
The key for the workflows in the result. |
| Fields inherited from class org.eclipse.smila.http.server.json.JsonBulkRequestHandler |
|---|
FACTORY |
| Constructor Summary | |
|---|---|
BulkbuilderBurstHandler()
|
|
| Method Summary | |
|---|---|
void |
end(java.lang.String method,
java.lang.String requestUri)
Called after processing and finishing is done. |
java.lang.Object |
finish(java.lang.String method,
java.lang.String requestUri)
Called after the complete input bulk has been processed successfully. |
protected int |
getErrorStatus(java.lang.String method,
java.lang.String requestUri,
java.lang.Throwable ex)
Gets the HTTP error status code depending on the method, request URI and throwable. |
void |
process(java.lang.String method,
java.lang.String requestUri,
Record inputRecord)
process input record and return result record. |
void |
setBulkbuilderService(BulkbuilderService service)
Sets the bulk builder. |
void |
start(java.lang.String method,
java.lang.String requestUri)
Called before processing. |
void |
unsetBulkbuilderService(BulkbuilderService service)
Unset the bulk builder. |
| Methods inherited from class org.eclipse.smila.http.server.json.JsonBulkRequestHandler |
|---|
getRequestHost, getSuccessStatus, handle, isValidMethod, writeErrorResult, writeResultObject, writeSuccessResult |
| Methods inherited from class org.eclipse.smila.http.server.util.ARequestHandler |
|---|
activate, getDynamicUriParts, getRootContextPath, getStaticUriParts, getUriPattern, matches, urlDecode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String KEY_WORKFLOW_RUNS
| Constructor Detail |
|---|
public BulkbuilderBurstHandler()
| Method Detail |
|---|
public void start(java.lang.String method,
java.lang.String requestUri)
throws java.lang.Exception
start in class JsonBulkRequestHandlermethod - the request method.requestUri - the request URI.
java.lang.Exception - any failure during processing.
public void process(java.lang.String method,
java.lang.String requestUri,
Record inputRecord)
throws java.lang.Exception
process in class JsonBulkRequestHandlermethod - the HTTP method of this request.requestUri - the request URIinputRecord - input Record, may be null
java.lang.Exception - any failure during processing.
public java.lang.Object finish(java.lang.String method,
java.lang.String requestUri)
throws java.lang.Exception
finish in class JsonBulkRequestHandlermethod - the request method.requestUri - the request URI.
java.lang.Exception - any failure during finishing.
public void end(java.lang.String method,
java.lang.String requestUri)
throws java.lang.Exception
end in class JsonBulkRequestHandlermethod - the request method.requestUri - the request URI.
java.lang.Exception
protected int getErrorStatus(java.lang.String method,
java.lang.String requestUri,
java.lang.Throwable ex)
getErrorStatus in class JsonBulkRequestHandlerJsonHttpUtils.getErrorStatus(Throwable)public void setBulkbuilderService(BulkbuilderService service)
service - the new BulkBuilderpublic void unsetBulkbuilderService(BulkbuilderService service)
service - the BulkBuilder to unset
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||