Search in sources :

Example 1 with ApplicationPushBuilder

use of org.apache.catalina.core.ApplicationPushBuilder in project tomcat by apache.

the class Request method getPushBuilder.

// --------------------------------------------- HttpServletRequest Methods
/**
     * {@inheritDoc}
     *
     * @since Servlet 4.0
     */
@Override
public PushBuilder getPushBuilder() {
    AtomicBoolean result = new AtomicBoolean();
    coyoteRequest.action(ActionCode.IS_PUSH_SUPPORTED, result);
    if (result.get()) {
        return new ApplicationPushBuilder(this);
    } else {
        return null;
    }
}
Also used : AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) ApplicationPushBuilder(org.apache.catalina.core.ApplicationPushBuilder)

Aggregations

AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 ApplicationPushBuilder (org.apache.catalina.core.ApplicationPushBuilder)1