|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.component.gae.task.GTaskBinding
public class GTaskBinding
Binds the TaskOptions of the task queueing service to a Camel
Exchange for outbound communication. For inbound communication a
HttpMessage is bound to Exchange.
| Field Summary | |
|---|---|
static String |
GTASK_QUEUE_NAME
Camel header name corresponding to X-AppEngine-QueueName
header created by task queueing service. |
static String |
GTASK_RETRY_COUNT
Camel header name corresponding to X-AppEngine-TaskRetryCount
header created by task queueing service. |
static String |
GTASK_TASK_NAME
Camel header name corresponding to X-AppEngine-TaskName
header created by task queueing service. |
| Constructor Summary | |
|---|---|
GTaskBinding()
|
|
| Method Summary | |
|---|---|
protected String |
getWorkerRoot(GTaskEndpoint endpoint)
|
Exchange |
readRequest(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletRequest request)
Replaces the task service-specific headers ( X-AppEngine-*)
with Camel-specific headers. |
protected void |
readRequestHeaders(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletRequest request)
|
Exchange |
readResponse(GTaskEndpoint endpoint,
Exchange exchange,
Void response)
Populates an Exchange from response data and endpoint configuration data. |
com.google.appengine.api.labs.taskqueue.TaskOptions |
writeRequest(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
Reads data from exchange and writes it to a newly created
TaskOptions instance. |
protected void |
writeRequestBody(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
|
protected void |
writeRequestHeaders(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
|
HttpServletResponse |
writeResponse(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletResponse response)
Creates or populates a response object from Exchange and endpoint configuration data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GTASK_QUEUE_NAME
X-AppEngine-QueueName
header created by task queueing service.
public static final String GTASK_TASK_NAME
X-AppEngine-TaskName
header created by task queueing service.
public static final String GTASK_RETRY_COUNT
X-AppEngine-TaskRetryCount
header created by task queueing service.
| Constructor Detail |
|---|
public GTaskBinding()
| Method Detail |
|---|
public com.google.appengine.api.labs.taskqueue.TaskOptions writeRequest(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
exchange and writes it to a newly created
TaskOptions instance. The request parameter is
ignored.
writeRequest in interface OutboundBinding<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>endpoint - exchange - request - ignored.
TaskOptions instance containing data from
exchange.
public Exchange readResponse(GTaskEndpoint endpoint,
Exchange exchange,
Void response)
OutboundBindingExchange from response data and endpoint configuration data.
readResponse in interface OutboundBinding<GTaskEndpoint,com.google.appengine.api.labs.taskqueue.TaskOptions,Void>endpoint - endpoint providing binding-relevant information.exchange - exchange to be populated or created (if null) from response data.response - response to read data from.
UnsupportedOperationException
public Exchange readRequest(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletRequest request)
X-AppEngine-*)
with Camel-specific headers.
readRequest in interface InboundBinding<GTaskEndpoint,HttpServletRequest,HttpServletResponse>endpoint - endpoint providing binding-relevant information.exchange - exchange to be populated or created (if null) from request data.request - request to read data from.
GTASK_QUEUE_NAME,
GTASK_TASK_NAME,
GTASK_RETRY_COUNT,
DefaultHttpBinding.readRequest(HttpServletRequest, HttpMessage)
public HttpServletResponse writeResponse(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletResponse response)
InboundBindingExchange and endpoint configuration data.
writeResponse in interface InboundBinding<GTaskEndpoint,HttpServletRequest,HttpServletResponse>endpoint - endpoint providing binding-relevant information.exchange - exchange to read data from.response - to be populated or created (if null) from exchange data.
protected void writeRequestHeaders(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
protected void readRequestHeaders(GTaskEndpoint endpoint,
Exchange exchange,
HttpServletRequest request)
protected void writeRequestBody(GTaskEndpoint endpoint,
Exchange exchange,
com.google.appengine.api.labs.taskqueue.TaskOptions request)
protected String getWorkerRoot(GTaskEndpoint endpoint)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||