net.officefloor.plugin.web.http.application
Class WebApplicationSectionSource

java.lang.Object
  extended by net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
      extended by net.officefloor.plugin.web.http.application.WebApplicationSectionSource
All Implemented Interfaces:
SectionSource

public class WebApplicationSectionSource
extends AbstractSectionSource

Provides server functionality for the HTTP Server.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
AbstractSectionSource.SpecificationContext
 
Field Summary
static String PROPERTY_LINK_SERVICE_TASK_NAME_PREFIX
          Prefix on the Task name to service links.
static String ROUTE_TO_HTTP_TEMPLATE_OUTPUT_URI_PREFIX
          Prefix on the SectionOutput name for the registered HttpTemplateAutoWireSection to allow linking flow.
static String SEND_RESPONSE_INPUT_NAME
          Name of the SectionInput to send the HttpResponse.
static String UNHANDLED_REQUEST_OUTPUT_NAME
          Name of the SectionOutput for servicing non-handled HttpRequest instances.
 
Constructor Summary
WebApplicationSectionSource()
           
 
Method Summary
protected  void loadSpecification(AbstractSectionSource.SpecificationContext context)
          Loads the SectionSourceSpecification.
 void sourceSection(SectionDesigner designer, SectionSourceContext context)
          Sources the OfficeSection by constructing it via the input SectionDesigner.
 
Methods inherited from class net.officefloor.compile.spi.section.source.impl.AbstractSectionSource
getSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNHANDLED_REQUEST_OUTPUT_NAME

public static final String UNHANDLED_REQUEST_OUTPUT_NAME
Name of the SectionOutput for servicing non-handled HttpRequest instances.

See Also:
Constant Field Values

SEND_RESPONSE_INPUT_NAME

public static final String SEND_RESPONSE_INPUT_NAME
Name of the SectionInput to send the HttpResponse.

See Also:
Constant Field Values

ROUTE_TO_HTTP_TEMPLATE_OUTPUT_URI_PREFIX

public static final String ROUTE_TO_HTTP_TEMPLATE_OUTPUT_URI_PREFIX
Prefix on the SectionOutput name for the registered HttpTemplateAutoWireSection to allow linking flow.

See Also:
Constant Field Values

PROPERTY_LINK_SERVICE_TASK_NAME_PREFIX

public static final String PROPERTY_LINK_SERVICE_TASK_NAME_PREFIX
Prefix on the Task name to service links.

See Also:
Constant Field Values
Constructor Detail

WebApplicationSectionSource

public WebApplicationSectionSource()
Method Detail

loadSpecification

protected void loadSpecification(AbstractSectionSource.SpecificationContext context)
Description copied from class: AbstractSectionSource
Loads the SectionSourceSpecification.

Specified by:
loadSpecification in class AbstractSectionSource
Parameters:
context - AbstractSectionSource.SpecificationContext.

sourceSection

public void sourceSection(SectionDesigner designer,
                          SectionSourceContext context)
                   throws Exception
Description copied from interface: SectionSource
Sources the OfficeSection by constructing it via the input SectionDesigner.

Parameters:
designer - SectionDesigner to construct the structure of the OfficeSection.
context - SectionSourceContext to source details to construct the OfficeSection.
Throws:
Exception - If fails to construct the OfficeSection.


Copyright © 2005-2013. All Rights Reserved.