Search in sources :

Example 1 with RouteData

use of org.webpieces.router.impl.services.RouteData in project webpieces by deanhiller.

the class FContentRouter method invoke.

@Override
public RouterStreamRef invoke(RequestContext ctx, ProxyStreamHandle handler) {
    RouteData data = new RouteInfoForContent(bodyContentBinder);
    String i18nBundleName = moduleInfo.getI18nBundleName();
    InvokeInfo invokeInfo = new InvokeInfo(ctx, handler, RouteType.CONTENT, loadedController, i18nBundleName);
    return routeInvoker.invokeContentController(invokeInfo, dynamicInfo, data);
}
Also used : RouteInfoForContent(org.webpieces.router.impl.services.RouteInfoForContent) InvokeInfo(org.webpieces.router.impl.routeinvoker.InvokeInfo) RouteData(org.webpieces.router.impl.services.RouteData)

Example 2 with RouteData

use of org.webpieces.router.impl.services.RouteData in project webpieces by deanhiller.

the class FStreamingRouter method invoke.

@Override
public RouterStreamRef invoke(RequestContext ctx, ProxyStreamHandle handler) {
    RouteData data = new RouteInfoForStream();
    InvokeInfo invokeInfo = new InvokeInfo(ctx, handler, RouteType.STREAMING, loadedController, i18nBundleName);
    return routeInvoker.invokeStreamingController(invokeInfo, dynamicInfo, data);
}
Also used : RouteInfoForStream(org.webpieces.router.impl.services.RouteInfoForStream) InvokeInfo(org.webpieces.router.impl.routeinvoker.InvokeInfo) RouteData(org.webpieces.router.impl.services.RouteData)

Example 3 with RouteData

use of org.webpieces.router.impl.services.RouteData in project webpieces by deanhiller.

the class FHtmlRouter method invoke.

@Override
public RouterStreamRef invoke(RequestContext ctx, ProxyStreamHandle handler) {
    RouteData data = new RouteInfoForHtml(isCheckSecureToken, matchInfo.getHttpMethod());
    InvokeInfo invokeInfo = new InvokeInfo(ctx, handler, RouteType.HTML, loadedController, i18nBundleName);
    return invoker.invokeHtmlController(invokeInfo, dynamicInfo, data);
}
Also used : InvokeInfo(org.webpieces.router.impl.routeinvoker.InvokeInfo) RouteData(org.webpieces.router.impl.services.RouteData) RouteInfoForHtml(org.webpieces.router.impl.services.RouteInfoForHtml)

Aggregations

InvokeInfo (org.webpieces.router.impl.routeinvoker.InvokeInfo)3 RouteData (org.webpieces.router.impl.services.RouteData)3 RouteInfoForContent (org.webpieces.router.impl.services.RouteInfoForContent)1 RouteInfoForHtml (org.webpieces.router.impl.services.RouteInfoForHtml)1 RouteInfoForStream (org.webpieces.router.impl.services.RouteInfoForStream)1