@Override public OfficeSectionOutput getOutput(String outputName) { return this.section.getOfficeSectionOutput(outputName); }
@Override public OfficeFlowSourceNode getOutput(String outputName) { return this.section.getOfficeSectionOutput(outputName); }
/** * Instantiate. * * @param isSecure * Indicates if secure. * @param httpMethod * {@link HttpMethod}. * @param applicationPath * Application path. */ private HttpInputImpl(boolean isSecure, HttpMethod httpMethod, String applicationPath) { this.isSecure = isSecure; this.httpMethod = httpMethod; this.applicationPath = applicationPath; this.routeInput = WebArchitectEmployer.this.routing.addRoute(isSecure, this.httpMethod, this.applicationPath); this.input = WebArchitectEmployer.this.routingSection .getOfficeSectionOutput(this.routeInput.getOutputName()); }
@Override public OfficeFlowSinkNode secureFlow(Class<?> argumentType, OfficeFlowSinkNode secureFlowSink, OfficeFlowSinkNode insecureFlowSink) { // Obtain the office architect OfficeArchitect office = HttpSecurityArchitectEmployer.this.officeArchitect; // Create the section to handle access logic String sectionName = HttpSecurityArchitectEmployer.this.nextUniqueName(); OfficeSection section = office.addOfficeSection(sectionName, new HttpFlowSecurerSectionSource( new HttpFlowSecurerAnnotation(qualifier, anyRoles, allRoles, argumentType)), null); // Link office.link(section.getOfficeSectionOutput(HttpFlowSecurerSectionSource.SECURE_OUTPUT_NAME), secureFlowSink); office.link(section.getOfficeSectionOutput(HttpFlowSecurerSectionSource.INSECURE_OUTPUT_NAME), insecureFlowSink); // Return the sink to secure flow decision return section.getOfficeSectionInput(HttpFlowSecurerSectionSource.INPUT_NAME); } });
.getOfficeSectionInput(HandleAuthenticationRequiredSectionSource.HANDLE_INPUT)); for (HttpSecurityBuilderImpl<?, ?, ?, ?, ?> security : this.securities) { this.officeArchitect.link(handleAuthenticationRequiredSection.getOfficeSectionOutput(security.name), security.section.getOfficeSectionInput(HttpSecuritySectionSource.INPUT_CHALLENGE));
.getOfficeSectionOutput(outputType.getOfficeSectionOutputName()); WebTemplateArchitectEmployer.this.officeArchitect.link(redirectOutput, this.templateInput.getRedirect(valuesType == null ? null : valuesType.getName()));
.getOfficeSectionOutput(interception.getOutputName()); for (Interceptor interceptor : this.interceptors) { .getOfficeSectionOutput(HttpRouteSectionSource.UNHANDLED_OUTPUT_NAME); NEXT_CHAINED_SERVICER: for (ChainedServicer servicer : this.chainedServicers) {
if (credentialsType != null) { HttpSecurityArchitectEmployer.this.webArchitect .reroute(this.section.getOfficeSectionOutput(HttpSecuritySectionSource.OUTPUT_RECONTINUE));
sections.linkToSectionInput(() -> section.getOfficeSectionOutput(outputName), outputModel.getWoofSectionInput(), (link) -> link.getWoofSectionInput()); templates.linkToTemplate(() -> section.getOfficeSectionOutput(outputName), outputModel.getWoofTemplate(), (link) -> link.getWoofTemplate(), outputArgumentTypeName); securities.linkToSecurity(() -> section.getOfficeSectionOutput(outputName), outputModel.getWoofSecurity(), (link) -> link.getWoofSecurity()); resources.linkToResource(() -> section.getOfficeSectionOutput(outputName), outputModel.getWoofResource(), (link) -> link.getWoofResource()); httpContinuations.linkToHttpContinuation(() -> section.getOfficeSectionOutput(outputName), outputModel.getWoofHttpContinuation(), (link) -> link.getWoofHttpContinuation(), outputArgumentTypeName);