net.officefloor.plugin.socket.server.http.response.source
Class HttpResponseSenderWorkSource

java.lang.Object
  extended by net.officefloor.compile.spi.work.source.impl.AbstractWorkSource<Work>
      extended by net.officefloor.plugin.socket.server.http.response.source.HttpResponseSenderWorkSource
All Implemented Interfaces:
WorkSource<Work>

public class HttpResponseSenderWorkSource
extends AbstractWorkSource<Work>

WorkSource to trigger sending the HttpResponse.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource
AbstractWorkSource.SpecificationContext
 
Field Summary
static String PROPERTY_HTTP_RESPONSE_CONTENT_FILE
          Property to obtain the class path location of the File containing the HTTP response.
static String PROPERTY_HTTP_STATUS
          Property to obtain the HTTP status for the HttpResponse.
 
Constructor Summary
HttpResponseSenderWorkSource()
           
 
Method Summary
protected  void loadSpecification(AbstractWorkSource.SpecificationContext context)
           
 void sourceWork(WorkTypeBuilder<Work> workTypeBuilder, WorkSourceContext context)
           
 
Methods inherited from class net.officefloor.compile.spi.work.source.impl.AbstractWorkSource
getSpecification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_HTTP_STATUS

public static final String PROPERTY_HTTP_STATUS
Property to obtain the HTTP status for the HttpResponse.

See Also:
Constant Field Values

PROPERTY_HTTP_RESPONSE_CONTENT_FILE

public static final String PROPERTY_HTTP_RESPONSE_CONTENT_FILE
Property to obtain the class path location of the File containing the HTTP response.

See Also:
Constant Field Values
Constructor Detail

HttpResponseSenderWorkSource

public HttpResponseSenderWorkSource()
Method Detail

loadSpecification

protected void loadSpecification(AbstractWorkSource.SpecificationContext context)
Specified by:
loadSpecification in class AbstractWorkSource<Work>

sourceWork

public void sourceWork(WorkTypeBuilder<Work> workTypeBuilder,
                       WorkSourceContext context)
                throws Exception
Throws:
Exception


Copyright © 2005-2011. All Rights Reserved.