org.ow2.jonas.web.base.proxy
Class CopyingStream
java.lang.Object
java.lang.Thread
org.ow2.jonas.web.base.proxy.CopyingStream
- All Implemented Interfaces:
- Runnable
public class CopyingStream
- extends Thread
Allow to copy inputstream of the client to the remote output stream.
- Author:
- Florent Benoit
Method Summary |
void |
run()
Send the bytes of the byte array stream and then send all the client's input stream. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
CopyingStream
public CopyingStream(HttpSocketHandler socketHandler,
ByteArrayOutputStream byteArrayOutputStream,
InputStream inputStream,
OutputStream outputStream)
- Build a new copying stream with the given parameters.
- Parameters:
socketHandler
- object handling the client socketbyteArrayOutputStream
- the bytes to add on the remote connectioninputStream
- the client's input streamoutputStream
- the remote connection output stream
run
public void run()
- Send the bytes of the byte array stream and then send all the client's input stream.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright © 2013 OW2 Consortium. All Rights Reserved.