net.craftforge.essential.controller.phases
Class ProductionPhase

java.lang.Object
  extended by net.craftforge.essential.controller.phases.ProductionPhase
All Implemented Interfaces:
Phase

public class ProductionPhase
extends Object
implements Phase

Produces a serialized response from the result.

Since:
17.01.2011
Author:
Christian Bick

Constructor Summary
ProductionPhase(State state, Setup setup)
          Creates a production phase from a controller state and setup.
 
Method Summary
protected  Map<String,String[]> getHeadersWithContent(Producer producer)
           
protected  Map<String,String[]> getHeadersWithoutContent()
           
protected  Producer getProducer()
           
 void run()
          Runs the phase.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductionPhase

public ProductionPhase(State state,
                       Setup setup)
Creates a production phase from a controller state and setup.

Parameters:
state - The controller state
setup - The controller setup
Method Detail

run

public void run()
         throws ControllerException
Runs the phase.

Specified by:
run in interface Phase
Throws:
ControllerException - Failed to run phase

getHeadersWithoutContent

protected Map<String,String[]> getHeadersWithoutContent()
                                                 throws ControllerException
Throws:
ControllerException

getHeadersWithContent

protected Map<String,String[]> getHeadersWithContent(Producer producer)
                                              throws ControllerException
Throws:
ControllerException

getProducer

protected Producer getProducer()
                        throws ControllerException
Throws:
ControllerException


Copyright © 2011. All Rights Reserved.