org.vfny.geoserver.servlets
Interface AbstractService.ServiceStratagy

Enclosing interface:
AbstractService

public static interface AbstractService.ServiceStratagy

Interface used for ServiceMode stratagy objects.

While this interface resembles the Enum idiom in that only three instances are available SPEED, BUFFER and FILE, we are using this class to plug-in the implementation for our doService request in the manner of the Stratagy pattern.


Method Summary
 void abort()
          Complete opperation in the negative.
 void flush()
          Complete opperation in the positive.
 java.io.OutputStream getDestination(javax.servlet.http.HttpServletResponse response)
          Get a OutputStream we can use to add content.
 

Method Detail

getDestination

public java.io.OutputStream getDestination(javax.servlet.http.HttpServletResponse response)
                                    throws java.io.IOException
Get a OutputStream we can use to add content.

JG - Can we replace this with a Writer?

Parameters:
response -
Returns:
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Complete opperation in the positive.

Gives service a chance to finish with destination, and clean up any resources.

Throws:
java.io.IOException

abort

public void abort()
Complete opperation in the negative.

Gives ServiceConfig a chance to clean up resources