com.sas.servlet.util
Class SocketListener

com.sas.servlet.util.SocketListener
All Implemented Interfaces:
java.lang.Runnable

public class SocketListener

This class extends BaseSocketListener to add support for writing the socket stream to a servlet response.


Constructor Summary
SocketListener()
           
 
Method Summary
 void write(javax.servlet.http.HttpServletResponse response)
          Writes the current contents of the socket stream to the servlet response.
 

Constructor Detail

SocketListener

public SocketListener()
Method Detail

write

public void write(javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
Writes the current contents of the socket stream to the servlet response. The socket will be closed once all of the data has been read.

Parameters:
response - The response object
Throws:
javax.servlet.ServletException - Thrown if some type of servlet error occurs
java.io.IOException - Thrown if some type of I/O error occurs



Copyright © 2009 SAS Institute Inc. All Rights Reserved.