Module org.eclipse.jetty.rewrite
Class RewriteEncodingRule.EncodingHandler
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
org.eclipse.jetty.rewrite.handler.Rule.Handler
org.eclipse.jetty.rewrite.handler.RewriteEncodingRule.EncodingHandler
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source,org.eclipse.jetty.server.Request,org.eclipse.jetty.util.Attributes
- Enclosing class:
RewriteEncodingRule
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Layer, org.eclipse.jetty.util.Attributes.Lazy, org.eclipse.jetty.util.Attributes.Mapped, org.eclipse.jetty.util.Attributes.SyntheticNested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.FactoryNested classes/interfaces inherited from interface org.eclipse.jetty.server.Request
org.eclipse.jetty.server.Request.AttributesWrapper, org.eclipse.jetty.server.Request.AuthenticationState, org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.server.Request.ServeAs, org.eclipse.jetty.server.Request.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULLFields inherited from interface org.eclipse.jetty.server.Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG -
Constructor Summary
ConstructorsConstructorDescriptionEncodingHandler(Rule.Handler input, String encodingPathInContext, RewriteEncodingRule.Encoding encoding) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.http.HttpFieldsorg.eclipse.jetty.http.HttpURIprotected booleanhandle(org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback) Handles this wrapped request together with the passed response and callback.Methods inherited from class org.eclipse.jetty.server.Request.Wrapper
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, asAttributeMap, clearAttributes, consumeAvailable, demand, fail, getAttribute, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeadersNanoTime, getId, getLength, getMethod, getSession, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Attributes
equals, hashCodeMethods inherited from interface org.eclipse.jetty.io.Content.Source
fail, rewind
-
Constructor Details
-
EncodingHandler
public EncodingHandler(Rule.Handler input, String encodingPathInContext, RewriteEncodingRule.Encoding encoding)
-
-
Method Details
-
getHttpURI
public org.eclipse.jetty.http.HttpURI getHttpURI()- Specified by:
getHttpURIin interfaceorg.eclipse.jetty.server.Request- Overrides:
getHttpURIin classorg.eclipse.jetty.server.Request.Wrapper
-
getHeaders
public org.eclipse.jetty.http.HttpFields getHeaders()- Specified by:
getHeadersin interfaceorg.eclipse.jetty.server.Request- Overrides:
getHeadersin classorg.eclipse.jetty.server.Request.Wrapper
-
handle
protected boolean handle(org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback) throws Exception Description copied from class:Rule.HandlerHandles this wrapped request together with the passed response and callback.
This method should be overridden only if the rule applies to the response, or the rule completes the callback. By default this method forwards the handling to the next
Rule.Handler. If a rule that overrides this method is non-terminating, it should call thesuperimplementation to chain the rules.- Overrides:
handlein classRule.Handler- Parameters:
response- theResponsecallback- theCallback- Throws:
Exception- if there is a failure while handling the rules
-