public class StaticFileMethod extends HttpMethod
HttpMethod.VERB| Modifier and Type | Field and Description |
|---|---|
protected ResolvedFile |
resolvedFile |
classMethod, factories, klass, path, priority| Constructor and Description |
|---|
StaticFileMethod(Queue<ObjectFactory> factories,
HttpProtocolConfiguration protocolConfig) |
| Modifier and Type | Method and Description |
|---|---|
ResolvedFile |
getFile() |
Object |
invoke(io.netty.channel.ChannelHandlerContext ctx,
String path,
Object msg,
Object[] params,
DependencyProvider provider) |
boolean |
matches(String requestPath,
io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
addVerb, getConsumesMediaTypes, getFragments, getParams, getProducesMediaTypes, getTemplate, getValidationResult, hasFragments, hasProduces, hasTemplate, initialiseParams, injectParameters, matchesVerb, parseMediaTypes, produces, setParam, setTemplate, setTemplate, setValidationResultcompareTo, createInstance, equals, hashCode, klass, method, parsePath, path, priority, rawPath, registered, setPriority, toStringprotected ResolvedFile resolvedFile
public StaticFileMethod(Queue<ObjectFactory> factories, HttpProtocolConfiguration protocolConfig)
public ResolvedFile getFile()
Path to the file that was found by
matches(String, io.netty.channel.ChannelHandlerContext, Object)public boolean matches(String requestPath, io.netty.channel.ChannelHandlerContext ctx, Object msg)
matches in class HttpMethodpublic Object invoke(io.netty.channel.ChannelHandlerContext ctx, String path, Object msg, Object[] params, DependencyProvider provider) throws InvocationTargetException, IllegalAccessException, InstantiationException
invoke in class InvokableMethodInvocationTargetExceptionIllegalAccessExceptionInstantiationExceptionCopyright © 2012-2015. All Rights Reserved.