Class InboundHTTPWriter
java.lang.Object
java.io.OutputStream
com.ibm.jakarta.connector2.cics.inbound.InboundHTTPWriter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInboundHTTPWriter
(InboundSession session, com.ibm.ctg.server.isc.Connection conn, int chunkSize) Creates a chunking output stream.InboundHTTPWriter
(InboundSession session, InboundConnection myConn) Creates a chunking output stream. -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
Warning: this won't affect reads currently in progress on this stream.void
flush()
int
int
long
void
The main description.void
pace()
void
void
reset()
void
sendPace()
void
Cause this request to be sent with End-bracket.void
Cause this request to be sent with End-bracket.void
void
setOverallTimeout
(long overallTimeout) Warning: Timeout starts immediately from setting this method.void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
CLASS_VERSION
- See Also:
-
DEFAULT_CHUNKSIZE
public static final int DEFAULT_CHUNKSIZE- See Also:
-
-
Constructor Details
-
InboundHTTPWriter
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 classOutputStream
- 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 classOutputStream
- 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 classOutputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
reset
public void reset() -
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
com.ibm.ctg.server.isc.exceptions.SessionInterruptException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-
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
-
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()
-