org.apache.tuscany.sca.binding.notification.util
Class IOUtils
java.lang.Object
org.apache.tuscany.sca.binding.notification.util.IOUtils
public class IOUtils
- extends java.lang.Object
Method Summary |
static int |
copyStream(java.io.InputStream ist,
java.io.OutputStream ost)
|
static int |
copyStream(java.io.InputStream ist,
java.io.OutputStream ost,
int length)
|
static int |
copyStream(java.io.InputStream ist,
java.io.OutputStream ost,
int length,
int blockSize)
|
static byte[] |
readFully(java.io.InputStream ist,
int len)
|
static java.lang.Object |
sendHttpRequest(java.net.URL targetURL,
java.util.Map<java.lang.String,java.lang.String> headers,
IOUtils.Writeable wbody,
IOUtils.ReadableContinuation rcont)
|
static java.lang.Object |
sendHttpRequest(java.net.URL targetURL,
java.lang.String opName,
IOUtils.Writeable wbody,
IOUtils.ReadableContinuation rcont)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Notification_Source
public static final java.lang.String Notification_Source
- See Also:
- Constant Field Values
Notification_Target
public static final java.lang.String Notification_Target
- See Also:
- Constant Field Values
Notification_Operation
public static final java.lang.String Notification_Operation
- See Also:
- Constant Field Values
DEF_BLOCK_SIZE
public static final int DEF_BLOCK_SIZE
- See Also:
- Constant Field Values
IOUtils
public IOUtils()
sendHttpRequest
public static java.lang.Object sendHttpRequest(java.net.URL targetURL,
java.lang.String opName,
IOUtils.Writeable wbody,
IOUtils.ReadableContinuation rcont)
throws java.lang.Exception
- Throws:
java.lang.Exception
sendHttpRequest
public static java.lang.Object sendHttpRequest(java.net.URL targetURL,
java.util.Map<java.lang.String,java.lang.String> headers,
IOUtils.Writeable wbody,
IOUtils.ReadableContinuation rcont)
throws java.lang.Exception
- Throws:
java.lang.Exception
readFully
public static byte[] readFully(java.io.InputStream ist,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
copyStream
public static int copyStream(java.io.InputStream ist,
java.io.OutputStream ost)
throws java.io.IOException
- Throws:
java.io.IOException
copyStream
public static int copyStream(java.io.InputStream ist,
java.io.OutputStream ost,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
copyStream
public static int copyStream(java.io.InputStream ist,
java.io.OutputStream ost,
int length,
int blockSize)
throws java.io.IOException
- Throws:
java.io.IOException