public class WebPojoDispatcher
extends org.rapidoid.dispatch.impl.PojoDispatcherImpl
| Constructor and Description |
|---|
WebPojoDispatcher(Class<?>... classes) |
WebPojoDispatcher(Map<String,Class<?>> services) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
customSimpleArg(org.rapidoid.dispatch.PojoRequest request,
Annotation[] annotations) |
Object |
dispatch(org.rapidoid.dispatch.PojoRequest req) |
protected Object |
getCustomArg(org.rapidoid.dispatch.PojoRequest request,
Class<?> type,
String[] parts,
int paramsFrom,
int paramsSize) |
protected List<org.rapidoid.dispatch.impl.DispatchReq> |
getMethodActions(String servicePath,
Method method) |
protected List<String> |
getServiceNames(Class<?> service) |
protected Object |
invoke(org.rapidoid.dispatch.PojoRequest req,
Method method,
Object service,
Object[] args) |
protected boolean |
isCustomSimpleArg(org.rapidoid.dispatch.PojoRequest request,
Annotation[] annotations) |
protected boolean |
isCustomType(Class<?> type) |
protected void |
preprocess(org.rapidoid.dispatch.PojoRequest req,
Method method,
Object service,
Object[] args) |
public WebPojoDispatcher(Class<?>... classes)
protected boolean isCustomType(Class<?> type)
isCustomType in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected Object getCustomArg(org.rapidoid.dispatch.PojoRequest request, Class<?> type, String[] parts, int paramsFrom, int paramsSize)
getCustomArg in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected List<String> getServiceNames(Class<?> service)
getServiceNames in class org.rapidoid.dispatch.impl.PojoDispatcherImplpublic Object dispatch(org.rapidoid.dispatch.PojoRequest req) throws org.rapidoid.dispatch.PojoHandlerNotFoundException, org.rapidoid.dispatch.PojoDispatchException
dispatch in interface org.rapidoid.dispatch.PojoDispatcherdispatch in class org.rapidoid.dispatch.impl.PojoDispatcherImplorg.rapidoid.dispatch.PojoHandlerNotFoundExceptionorg.rapidoid.dispatch.PojoDispatchExceptionprotected List<org.rapidoid.dispatch.impl.DispatchReq> getMethodActions(String servicePath, Method method)
getMethodActions in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected void preprocess(org.rapidoid.dispatch.PojoRequest req,
Method method,
Object service,
Object[] args)
preprocess in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected Object invoke(org.rapidoid.dispatch.PojoRequest req, Method method, Object service, Object[] args)
invoke in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected Object customSimpleArg(org.rapidoid.dispatch.PojoRequest request, Annotation[] annotations)
customSimpleArg in class org.rapidoid.dispatch.impl.PojoDispatcherImplprotected boolean isCustomSimpleArg(org.rapidoid.dispatch.PojoRequest request,
Annotation[] annotations)
isCustomSimpleArg in class org.rapidoid.dispatch.impl.PojoDispatcherImplCopyright © 2014–2015 Nikolche Mihajlovski and contributors. All rights reserved.