public class HttpMethod extends InvokableMethod
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpMethod.VERB |
classMethod, factories, klass, log, path, priority| Constructor and Description |
|---|
HttpMethod(Queue<ObjectFactory> factories,
Class<?> klass,
Method classMethod) |
| Modifier and Type | Method and Description |
|---|---|
void |
addVerb(HttpMethod.VERB a) |
LinkedList<MediaType> |
getConsumesMediaTypes() |
String[] |
getFragments() |
MethodParam[] |
getParams() |
LinkedList<MediaType> |
getProducesMediaTypes() |
String |
getTemplate() |
ValidationResult |
getValidationResult() |
boolean |
hasFragments() |
boolean |
hasProduces() |
boolean |
hasTemplate() |
void |
initialiseParams(int length)
Initialises the set of parameters to the given length
|
protected Object[] |
injectParameters(io.netty.channel.ChannelHandlerContext ctx,
Object msg,
Object[] params,
Object instance,
DependencyProvider deps) |
boolean |
matches(String requestPath,
io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
boolean |
matchesVerb(String verb) |
void |
parseMediaTypes() |
boolean |
produces(MediaType... mediaTypes) |
void |
setParam(MethodParam param)
Sets the given parameter
|
void |
setTemplate(String template) |
void |
setTemplate(String[] fragments) |
void |
setValidationResult(ValidationResult validationResult) |
compareTo, createInstance, equals, hashCode, invoke, klass, method, parsePath, path, priority, rawPath, registered, setPriority, toStringpublic HttpMethod(Queue<ObjectFactory> factories, Class<?> klass, Method classMethod)
public void parseMediaTypes()
public LinkedList<MediaType> getConsumesMediaTypes()
public boolean produces(MediaType... mediaTypes)
public boolean hasProduces()
public LinkedList<MediaType> getProducesMediaTypes()
protected Object[] injectParameters(io.netty.channel.ChannelHandlerContext ctx, Object msg, Object[] params, Object instance, DependencyProvider deps)
injectParameters in class InvokableMethodpublic boolean matches(String requestPath, io.netty.channel.ChannelHandlerContext ctx, Object msg)
matches in class InvokableMethodpublic boolean matchesVerb(String verb)
public void setParam(MethodParam param)
param - the param to setpublic MethodParam[] getParams()
MethodParams accepted by this methodpublic void initialiseParams(int length)
public boolean hasTemplate()
public String getTemplate()
public void setTemplate(String template)
public void setTemplate(String[] fragments)
public String[] getFragments()
public boolean hasFragments()
public ValidationResult getValidationResult()
public void setValidationResult(ValidationResult validationResult)
public void addVerb(HttpMethod.VERB a)
Copyright © 2012-2015. All Rights Reserved.