Class InboundHTTPWriter

java.lang.Object
java.io.OutputStream
com.ibm.jakarta.connector2.cics.inbound.InboundHTTPWriter
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class InboundHTTPWriter extends OutputStream
  • Field Details

  • Constructor Details

    • InboundHTTPWriter

      public InboundHTTPWriter(InboundSession session, InboundConnection myConn)
      Creates a chunking output stream.
      Parameters:
      myConn - Once enough data has been written to the stream, (set by chunksize) the data is written out to the connection object which puts it on the network.
    • InboundHTTPWriter

      public InboundHTTPWriter(InboundSession session, com.ibm.ctg.server.isc.Connection conn, int chunkSize)
      Creates a chunking output stream.
      Parameters:
      conn - Once enough data has been written to the stream, (set by chunksize) the data is written out to the connection object which puts it on the network.
      chunkSize - Sets the chunksize for output data. When the data written to the stream reaches [chunksize] the data is sent and the buffer reset.
  • Method Details

    • write

      public void write(int b) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Specified by:
      write in class OutputStream
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • write

      public void write(byte[] b) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • write

      public void write(byte[] b, int off, int len) throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Overrides:
      write in class OutputStream
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • reset

      public void reset()
    • flush

      public void flush() throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Specified by:
      flush in interface Flushable
      Overrides:
      flush in class OutputStream
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class OutputStream
    • getChunkSize

      public int getChunkSize()
    • setEndOfConversation

      public void setEndOfConversation()
      Cause this request to be sent with End-bracket. We don't normally need to do this (generally we don't end the conversation, CICS does with the response).
    • setIntermediateConversation

      public void setIntermediateConversation()
      Cause this request to be sent with End-bracket. We don't normally need to do this (generally we don't end the conversation, CICS does with the response).
    • requestComplete

      public void requestComplete() throws IOException, com.ibm.ctg.server.isc.exceptions.SessionInterruptException
      Throws:
      IOException
      com.ibm.ctg.server.isc.exceptions.SessionInterruptException
    • getSession

      public InboundSession getSession()
    • getConnection

      public InboundConnection getConnection()
      Returns:
      The Connection this Writer is using.
    • getConvState

      public int getConvState()
    • pace

      public void pace()
    • sendPace

      public void sendPace() throws com.ibm.ctg.server.isc.exceptions.ConnectionException
      Throws:
      com.ibm.ctg.server.isc.exceptions.ConnectionException
    • calculateRemainingTimeout

      public int calculateRemainingTimeout()
    • getOverallTimeout

      public long getOverallTimeout()
    • setOverallTimeout

      public void setOverallTimeout(long overallTimeout)
      Warning: Timeout starts immediately from setting this method.
    • disableOverallTimeout

      public void disableOverallTimeout()
      Warning: this won't affect reads currently in progress on this stream.
    • interruptSend

      public void interruptSend()

      The main description.

    • setOutBoundType

      public void setOutBoundType()