if (inMessage == null) {
inMessage = new MessageImpl();
if (engine.getContinuationsEnabled()) {
inMessage.put(ContinuationProvider.class.getName(),
new JettyContinuationProvider(req, inMessage));
}
setupMessage(inMessage, context, req, resp);
inMessage.setDestination(this);
ExchangeImpl exchange = new ExchangeImpl();
exchange.setInMessage(inMessage);
exchange.setSession(new HTTPSession(req));
}
try {
incomingObserver.onMessage(inMessage);
resp.flushBuffer();
baseRequest.setHandled(true);
JettyContinuationProvider p = (JettyContinuationProvider)inMessage
.get(ContinuationProvider.class.getName());
if (p != null) {
//make sure the continuation is stripped down
JettyContinuationWrapper c = p.getContinuation(false);
if (c != null) {
c.done();
}
}
} catch (SuspendedInvocationException ex) {