public class RequestInvoker extends Object
构造器和说明 |
---|
RequestInvoker(Blade blade) |
限定符和类型 | 方法和说明 |
---|---|
void |
handle(Signature signature)
handle route signature
|
boolean |
invokeHook(List<Route> hooks,
Signature signature)
invoke hooks
|
boolean |
invokeHook(Signature routeSignature,
Route hookRoute)
invoke webhook
|
boolean |
invokeMiddleware(List<Route> middleware,
Signature signature) |
void |
routeHandle(Signature signature)
Actual routing method execution
|
public RequestInvoker(Blade blade)
public void routeHandle(Signature signature) throws Exception
signature
- signatureException
public void handle(Signature signature) throws Exception
signature
- route request signatureException
- throw like parse param exceptionpublic boolean invokeHook(Signature routeSignature, Route hookRoute) throws Exception
routeSignature
- current execute route handler signaturehookRoute
- current webhook route handlerException
- throw like parse param exceptionpublic boolean invokeMiddleware(List<Route> middleware, Signature signature) throws BladeException
BladeException
Copyright © 2017. All rights reserved.