Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Continuations

  Wiki Markup{span:style=font-size:2em;font-weight:bold} Continuations {span}

Table of Contents

Continuations API

...

The provider and continuations can be obtained from the current CXF message like this:

Code Block
java
java

import org.apache.cxf.continuations.ContinuationProvider;
import org.apache.cxf.continuations.Continuation;

ContinuationProvider provider = (ContinuationProvider)message.get(ContinuationProvider.class.getName())
Continuation continuation = provider.getContinuation();

...

Advanced custom CXF interceptors can suspend the incoming requests and resume them when needed.
Example:

Code Block
java
java

//TODO

Enabling HTTP continuations

...