public final Phase getPhase() { return getBridge().getPhase(); }
public Method getMethod() { return context.getHandler().getMethod(); }
Response response = context.getResponse(); if (response == null) { Stage.Invoke invokeStage = new Invoke(request, context, controller, args); response = invokeStage.invoke(); context.setResponse(response); context.setResponse(Response.error(e)); response = context.getResponse();
RequestContext context = new RequestContext(request, handler);
Response response = context.getResponse(); if (response == null) { Stage.Invoke invokeStage = new Invoke(request, context, controller, args); response = invokeStage.invoke(); context.setResponse(response); context.setResponse(Response.error(e)); response = context.getResponse();
RequestContext context = new RequestContext(request, handler);
public ApplicationContext getApplicationContext() { return getBridge().getApplicationContext(); }
public Method getMethod() { return context.getHandler().getMethod(); }
public final Phase getPhase() { return getBridge().getPhase(); }
@Override protected Response response() { try { Object ret = context.getHandler().getMethod().invoke(controller, args); for (Annotation annotation : context.getHandler().getMethod().getDeclaredAnnotations()) { if (annotation instanceof MimeType) { mimeType = (MimeType)annotation; for (EntityMarshaller writer : Tools.loadService(EntityMarshaller.class, request.controllerPlugin.getApplication().getClassLoader())) { for (String s : mimeType.value()) { Streamable streamable = writer.marshall(s, context.getHandler().getMethod(), ret); if (streamable != null) { return Response.ok().with(PropertyType.MIME_TYPE, s).body(streamable);
public UserContext getUserContext() { return getBridge().getUserContext(); }
@Override protected Response response() { try { Object ret = context.getHandler().getMethod().invoke(controller, args); for (Annotation annotation : context.getHandler().getMethod().getDeclaredAnnotations()) { if (annotation instanceof MimeType) { mimeType = (MimeType)annotation; for (EntityMarshaller writer : Tools.loadService(EntityMarshaller.class, request.controllerPlugin.getApplication().getClassLoader())) { for (String s : mimeType.value()) { Streamable streamable = writer.marshall(s, context.getHandler().getMethod(), ret); if (streamable != null) { return Response.ok().with(PropertyType.MIME_TYPE, s).body(streamable);
public HttpContext getHttpContext() { return getBridge().getHttpContext(); }
public UserContext getUserContext() { return getBridge().getUserContext(); }
public <T> T getProperty(PropertyType<T> propertyType) { return getBridge().getProperty(propertyType); }
public SecurityContext getSecurityContext() { return getBridge().getSecurityContext(); }
public <T> T getProperty(PropertyType<T> propertyType) { return getBridge().getProperty(propertyType); }
public ClientContext getClientContext() { return getBridge().getClientContext(); }
public SecurityContext getSecurityContext() { return getBridge().getSecurityContext(); }
public ClientContext getClientContext() { return getBridge().getClientContext(); }