@Override public HttpTransportOverHTTP2 getHttpTransport() { return (HttpTransportOverHTTP2)super.getHttpTransport(); }
@Override public boolean isOptimizedForDirectBuffers() { return getHttpTransport().isOptimizedForDirectBuffers(); }
@Override public boolean isOptimizedForDirectBuffers() { return getHttpTransport().isOptimizedForDirectBuffers(); }
/** * Get Request Attribute. * <p> * Also supports jetty specific attributes to gain access to Jetty APIs: * <dl> * <dt>org.eclipse.jetty.server.Server</dt><dd>The Jetty Server instance</dd> * <dt>org.eclipse.jetty.server.HttpChannel</dt><dd>The HttpChannel for this request</dd> * <dt>org.eclipse.jetty.server.HttpConnection</dt><dd>The HttpConnection or null if another transport is used</dd> * </dl> * While these attributes may look like security problems, they are exposing nothing that is not already * available via reflection from a Request instance. * @see javax.servlet.ServletRequest#getAttribute(java.lang.String) */ @Override public Object getAttribute(String name) { if (name.startsWith("org.eclipse.jetty")) { if (Server.class.getName().equals(name)) return _channel.getServer(); if (HttpChannel.class.getName().equals(name)) return _channel; if (HttpConnection.class.getName().equals(name) && _channel.getHttpTransport() instanceof HttpConnection) return _channel.getHttpTransport(); } return (_attributes == null)?null:_attributes.getAttribute(name); }
/** * Get Request Attribute. * <p> * Also supports jetty specific attributes to gain access to Jetty APIs: * <dl> * <dt>org.eclipse.jetty.server.Server</dt><dd>The Jetty Server instance</dd> * <dt>org.eclipse.jetty.server.HttpChannel</dt><dd>The HttpChannel for this request</dd> * <dt>org.eclipse.jetty.server.HttpConnection</dt><dd>The HttpConnection or null if another transport is used</dd> * </dl> * While these attributes may look like security problems, they are exposing nothing that is not already * available via reflection from a Request instance. * @see javax.servlet.ServletRequest#getAttribute(java.lang.String) */ @Override public Object getAttribute(String name) { if (name.startsWith("org.eclipse.jetty")) { if (Server.class.getName().equals(name)) return _channel.getServer(); if (HttpChannel.class.getName().equals(name)) return _channel; if (HttpConnection.class.getName().equals(name) && _channel.getHttpTransport() instanceof HttpConnection) return _channel.getHttpTransport(); } return (_attributes == null)?null:_attributes.getAttribute(name); }
/** * Get Request Attribute. * <p>Also supports jetty specific attributes to gain access to Jetty APIs: * <dl> * <dt>org.eclipse.jetty.server.Server</dt><dd>The Jetty Server instance</dd> * <dt>org.eclipse.jetty.server.HttpChannel</dt><dd>The HttpChannel for this request</dd> * <dt>org.eclipse.jetty.server.HttpConnection</dt><dd>The HttpConnection or null if another transport is used</dd> * </dl> * While these attributes may look like security problems, they are exposing nothing that is not already * available via reflection from a Request instance. * </p> * @see javax.servlet.ServletRequest#getAttribute(java.lang.String) */ @Override public Object getAttribute(String name) { if (name.startsWith("org.eclipse.jetty")) { if ("org.eclipse.jetty.server.Server".equals(name)) return _channel.getServer(); if ("org.eclipse.jetty.server.HttpChannel".equals(name)) return _channel; if ("org.eclipse.jetty.server.HttpConnection".equals(name) && _channel.getHttpTransport() instanceof HttpConnection) return _channel.getHttpTransport(); } return (_attributes == null)?null:_attributes.getAttribute(name); }
public boolean isPushSupported() { return getHttpChannel().getHttpTransport().isPushSupported(); }
public boolean isPushSupported() { return !isPush() && getHttpChannel().getHttpTransport().isPushSupported(); }
LOG.debug("Push {} {} inm={} ims={}",_method,uri,_fields.get(HttpHeader.IF_NONE_MATCH),_fields.get(HttpHeader.IF_MODIFIED_SINCE)); _request.getHttpChannel().getHttpTransport().push(push); _path=null; _etag=null;
LOG.debug("Push {} {} inm={} ims={}",_method,uri,_fields.get(HttpHeader.IF_NONE_MATCH),_fields.get(HttpHeader.IF_MODIFIED_SINCE)); _request.getHttpChannel().getHttpTransport().push(push); _path=null; _etag=null;
/** * <p>Pushes a secondary resource identified by this dispatcher.</p> * * @param request the primary request * @deprecated Use {@link Request#getPushBuilder()} instead */ @Deprecated public void push(ServletRequest request) { Request baseRequest = Request.getBaseRequest(request); HttpFields fields = new HttpFields(baseRequest.getHttpFields()); String query=baseRequest.getQueryString(); if (_uri.hasQuery()) { if (query==null) query=_uri.getQuery(); else query=query+"&"+_uri.getQuery(); // TODO is this correct semantic? } HttpURI uri = HttpURI.createHttpURI(request.getScheme(),request.getServerName(),request.getServerPort(),_uri.getPath(),baseRequest.getHttpURI().getParam(),query,null); MetaData.Request push = new MetaData.Request(HttpMethod.GET.asString(),uri,baseRequest.getHttpVersion(),fields); baseRequest.getHttpChannel().getHttpTransport().push(push); }
HttpTransport transport = baseRequest.getHttpChannel().getHttpTransport();