com.ibm.maf.atp
Class AtpResponseImpl

java.lang.Object
  extended bycom.ibm.maf.atp.AtpResponseImpl
All Implemented Interfaces:
AtpResponse

public final class AtpResponseImpl
extends java.lang.Object
implements AtpResponse

Version:
1.10 $Date :$
Author:
Mitsuru Oshima

Field Summary
private  ContentOutputStream bout
           
private  java.lang.String content_encoding
           
private  java.lang.String content_language
           
private  java.lang.String content_type
           
private static java.lang.String CRLF
           
private  java.io.OutputStream out
           
private  boolean request_sent
           
private  int statusCode
           
private  java.lang.String statusMsg
           
 
Constructor Summary
AtpResponseImpl(java.io.OutputStream out)
           
 
Method Summary
 java.io.OutputStream getOutputStream()
           
 int getStatusCode()
           
 void sendError(int i)
           
 void sendResponse()
           
 void setContentType(java.lang.String type)
           
 void setStatusCode(int i)
           
 void setStatusCode(int i, java.lang.String msg)
           
private  void writeHeaders()
           
private  void writeStatusLine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRLF

private static final java.lang.String CRLF
See Also:
Constant Field Values

out

private java.io.OutputStream out

bout

private ContentOutputStream bout

request_sent

private boolean request_sent

statusCode

private int statusCode

statusMsg

private java.lang.String statusMsg

content_type

private java.lang.String content_type

content_language

private java.lang.String content_language

content_encoding

private java.lang.String content_encoding
Constructor Detail

AtpResponseImpl

public AtpResponseImpl(java.io.OutputStream out)
                throws java.io.IOException
Method Detail

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
Specified by:
getOutputStream in interface AtpResponse
Throws:
java.io.IOException

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface AtpResponse

sendError

public void sendError(int i)
               throws java.io.IOException
Specified by:
sendError in interface AtpResponse
Throws:
java.io.IOException

sendResponse

public void sendResponse()
                  throws java.io.IOException
Specified by:
sendResponse in interface AtpResponse
Throws:
java.io.IOException

setContentType

public void setContentType(java.lang.String type)
Specified by:
setContentType in interface AtpResponse

setStatusCode

public void setStatusCode(int i)
Specified by:
setStatusCode in interface AtpResponse

setStatusCode

public void setStatusCode(int i,
                          java.lang.String msg)
Specified by:
setStatusCode in interface AtpResponse

writeHeaders

private void writeHeaders()
                   throws java.io.IOException
Throws:
java.io.IOException

writeStatusLine

private void writeStatusLine()
                      throws java.io.IOException
Throws:
java.io.IOException