Class PushEvent

  • All Implemented Interfaces:
    org.glassfish.grizzly.filterchain.FilterChainEvent

    public class PushEvent
    extends Object
    implements org.glassfish.grizzly.filterchain.FilterChainEvent
    A FilterChainEvent to trigger an HTTP/2 push promise and trigger a new request to be sent upstream to generate a response for said push promise.
    • Field Detail

      • TYPE

        public static final Object TYPE
    • Method Detail

      • type

        public Object type()
        Specified by:
        type in interface org.glassfish.grizzly.filterchain.FilterChainEvent
      • getMethod

        public String getMethod()
        Returns:
        the HTTP Method of the push request.
      • getHeaders

        public org.glassfish.grizzly.http.util.MimeHeaders getHeaders()
        Returns:
        the headers of the push request.
      • getPath

        public String getPath()
        Returns:
        the path of the push request.
      • getHttpRequest

        public org.glassfish.grizzly.http.HttpHeader getHttpRequest()
        Returns:
        the HttpRequestPacket of the original request. This is necessary in order to lookup the parent stream.
      • recycle

        public void recycle()
        This should be called by the entity generating the actual push and container requests. Developers using this event can ignore this.