SectionInput input = designer.addSectionInput(resourcePath, null); designer.link(input, task);
designer.link(designer.addSectionInput(SUBSCRIBE_INPUT_NAME, null), preSubscription); publishTask.getTaskObject(Dependencies.COMET_SERVICE.name()), cometService); designer.link(designer.addSectionInput(PUBLISH_INPUT_NAME, null), publishTask);
/** * Adds handling for a {@link Servlet} resource. * * @param inputName * {@link SectionInput} name. * @param requestDispatcherPath * {@link RequestDispatcher} path. * @param servletBridge * {@link ServletBridge} {@link SectionObject}. * @param designer * {@link SectionDesigner}. */ private void addServletResource(String inputName, String requestDispatcherPath, SectionObject servletBridge, SectionDesigner designer) { // Create the task to indicate Servlet container resource SectionWork work = designer.addSectionWork(inputName, ServletContainerResourceWorkSource.class.getName()); work.addProperty( ServletContainerResourceWorkSource.PROPERTY_SERVLET_CONTAINER_RESOURCE, requestDispatcherPath); SectionTask task = work.addSectionTask(inputName, "RESOURCE"); TaskObject dependency = task .getTaskObject(DependencyKeys.SERVLET_BRIDGE.name()); designer.link(dependency, servletBridge); // Link input for task SectionInput input = designer.addSectionInput(inputName, null); designer.link(input, task); }
@Override public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws Exception { final Map<Class<?>, SectionObject> objects = new HashMap<Class<?>, SectionObject>(); final Map<Class<?>, SectionOutput> escalations = new HashMap<Class<?>, SectionOutput>(); // Add file sender SectionWork sendFileWork = designer.addSectionWork("FILE", HttpFileSenderWorkSource.class.getName()); SourceHttpResourceFactory.copyProperties(context, sendFileWork); SectionTask sendFileTask = sendFileWork.addSectionTask( HttpFileSenderWorkSource.TASK_NAME, HttpFileSenderWorkSource.TASK_NAME); WebApplicationSectionSource.linkObject(sendFileTask, DependencyKeys.SERVER_HTTP_CONNECTION.name(), ServerHttpConnection.class, designer, objects); WebApplicationSectionSource.linkObject(sendFileTask, DependencyKeys.HTTP_APPLICATION_LOCATION.name(), HttpApplicationLocation.class, designer, objects); WebApplicationSectionSource.linkEscalation(sendFileTask, IOException.class, designer, escalations); WebApplicationSectionSource.linkEscalation(sendFileTask, InvalidHttpRequestUriException.class, designer, escalations); // Provide input to service SectionInput input = designer.addSectionInput(SERVICE_INPUT_NAME, null); designer.link(input, sendFileTask); // Provide output once file written SectionOutput output = designer.addSectionOutput(FILE_SENT_OUTPUT_NAME, null, false); designer.link(sendFileTask, output); }
SectionInput handle = designer.addSectionInput(HANDLE_INPUT, AuthenticationRequiredException.class.getName());
.addSectionInput(gwtServiceName, null); designer.link(serviceInput, task);
designer.link(designer.addSectionInput(INPUT_AUTHENTICATE, credentialsType.getName()), startAuthFunction); designer.link(designer.addSectionInput(INPUT_CHALLENGE, AuthenticationRequiredException.class.getName()), challengeFunction); designer.link( designer.addSectionInput("ManagedObjectAuthenticate", FunctionAuthenticateContext.class.getName()), moAuthFunction); designer.link(designer.addSectionInput("ManagedObjectLogout", LogoutRequest.class.getName()), moLogoutFunction);
@Override public void sourceSection(SectionDesigner designer, SectionSourceContext context) throws Exception { SectionFunctionNamespace namespace = designer.addSectionFunctionNamespace("secure", new HttpFlowSecurerManagedFunctionSource(this.annotation)); SectionFunction function = namespace.addSectionFunction("secure", HttpFlowSecurerManagedFunctionSource.FUNCTION_NAME); designer.link(designer.addSectionInput(INPUT_NAME, null), function); designer.link(function.getFunctionFlow(Flows.SECURE.name()), designer.addSectionOutput(SECURE_OUTPUT_NAME, null, false), false); designer.link(function.getFunctionFlow(Flows.INSECURE.name()), designer.addSectionOutput(INSECURE_OUTPUT_NAME, null, false), false); } }
SectionInput sectionInput = designer.addSectionInput(RENDER_TEMPLATE_INPUT_NAME, null); designer.link(sectionInput, initialFunction);
SectionInput input = designer.addSectionInput( HttpServerAutoWireOfficeFloorSource.HANDLER_INPUT_NAME, null); designer.link(input, routeTask); linkEscalation(sendResponseTask, IOException.class, designer, escalations); SectionInput sendResponseInput = designer.addSectionInput( SEND_RESPONSE_INPUT_NAME, null); designer.link(sendResponseInput, sendResponseTask);
SectionInput sectionInput = designer.addSectionInput(RENDER_TEMPLATE_INPUT_NAME, null); designer.link(sectionInput, initialTask);
SectionInput serviceInput = designer.addSectionInput(SERVICE_INPUT, null);
designer.link(designer.addSectionInput(INPUT_CHALLENGE, HttpAuthenticationRequiredException.class.getName()), challengeTask); designer.link(designer.addSectionInput(INPUT_AUTHENTICATE, credentialsType.getName()), startAuthTask); designer.link(designer.addSectionInput("ManagedObjectAuthenticate", TaskAuthenticateContext.class.getName()), moAuthTask); designer.link(designer.addSectionInput("ManagedObjectLogout", HttpLogoutRequest.class.getName()), moLogoutTask);
SectionInput handleHttpInput = designer.addSectionInput(WebArchitect.HANDLER_INPUT_NAME, null); if (this.interception == null) { SectionInput routeInput = designer.addSectionInput(this.interception.inputName, null); designer.link(routeInput, route); SectionInput notFoundInput = designer.addSectionInput(NOT_FOUND_INPUT_NAME, null); SectionFunctionNamespace notFoundNamespace = designer.addSectionFunctionNamespace("NOT_FOUND", new NotFoundManagedFunctionSource()); SectionInput redirectInput = designer.addSectionInput(functionName, null); designer.link(redirectInput, redirection);