public <T> void setAttribute(String name, T value) { this.context.setAttribute(name, value); }
public <T> void setAttribute(String name, T value) { this.context.setAttribute(name, value); }
public static AsyncContext startAsync() throws IOException { Context<TarsServantRequest, TarsServantResponse> context = ContextManager.getContext(); AsyncContext aContext = new AsyncContext(context); context.response().asyncCallStart(); context.setAttribute(PORTAL_CAP_ASYNC_CONTEXT_ATTRIBUTE, aContext); return aContext; }
public static AsyncContext startAsync() throws IOException { Context<TarsServantRequest, TarsServantResponse> context = ContextManager.getContext(); AsyncContext aContext = new AsyncContext(context); context.response().asyncCallStart(); context.setAttribute(PORTAL_CAP_ASYNC_CONTEXT_ATTRIBUTE, aContext); return aContext; }
if (appContext == null) throw new RuntimeException("failed to find the application named:[ROOT]"); Context<?, ?> context = ContextManager.registerContext(request, response); context.setAttribute(Context.INTERNAL_START_TIME, startTime); context.setAttribute(Context.INTERNAL_CLIENT_IP, session.getRemoteIp()); context.setAttribute(Context.INTERNAL_APP_NAME, appContext.name()); context.setAttribute(Context.INTERNAL_SERVICE_NAME, request.getServantName()); context.setAttribute(Context.INTERNAL_METHOD_NAME, request.getFunctionName()); context.setAttribute(Context.INTERNAL_SESSION_DATA, session);
if (appContext == null) throw new RuntimeException("failed to find the application named:[ROOT]"); Context<?, ?> context = ContextManager.registerContext(request, response); context.setAttribute(Context.INTERNAL_START_TIME, startTime); context.setAttribute(Context.INTERNAL_CLIENT_IP, session.getRemoteIp()); context.setAttribute(Context.INTERNAL_APP_NAME, appContext.name()); context.setAttribute(Context.INTERNAL_SERVICE_NAME, request.getServantName()); context.setAttribute(Context.INTERNAL_METHOD_NAME, request.getFunctionName()); context.setAttribute(Context.INTERNAL_SESSION_DATA, session);
context.setAttribute(Context.INTERNAL_START_TIME, startTime); context.setAttribute(Context.INTERNAL_CLIENT_IP, session.getRemoteIp()); context.setAttribute(Context.INTERNAL_SERVICE_NAME, request.getServantName()); context.setAttribute(Context.INTERNAL_METHOD_NAME, request.getFunctionName()); context.setAttribute(Context.INTERNAL_SESSION_DATA, session);
context.setAttribute(Context.INTERNAL_START_TIME, startTime); context.setAttribute(Context.INTERNAL_CLIENT_IP, session.getRemoteIp()); context.setAttribute(Context.INTERNAL_SERVICE_NAME, request.getServantName()); context.setAttribute(Context.INTERNAL_METHOD_NAME, request.getFunctionName()); context.setAttribute(Context.INTERNAL_SESSION_DATA, session);