|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.transport.tcp.protocols.AbstractByteProtocol
org.mule.transport.tcp.protocols.DirectProtocol
org.mule.transport.tcp.protocols.LengthProtocol
org.mule.transport.tcp.protocols.CustomClassLoadingLengthProtocol
public class CustomClassLoadingLengthProtocol
A length protocol that uses a specific class loader to load objects from streams
Field Summary |
---|
Fields inherited from class org.mule.transport.tcp.protocols.LengthProtocol |
---|
NO_MAX_LENGTH |
Fields inherited from class org.mule.transport.tcp.protocols.DirectProtocol |
---|
bufferSize, UNLIMITED |
Fields inherited from class org.mule.transport.tcp.protocols.AbstractByteProtocol |
---|
EOF, NO_STREAM, STREAM_OK |
Constructor Summary | |
---|---|
CustomClassLoadingLengthProtocol()
|
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
|
java.lang.Object |
read(java.io.InputStream is)
Reads the input stream and returns a whole message. |
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
Methods inherited from class org.mule.transport.tcp.protocols.LengthProtocol |
---|
getMaxMessageLength, isRepeat, setMaxMessageLength, writeByteArray |
Methods inherited from class org.mule.transport.tcp.protocols.DirectProtocol |
---|
read, remaining |
Methods inherited from class org.mule.transport.tcp.protocols.AbstractByteProtocol |
---|
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setRethrowExceptionOnRead, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomClassLoadingLengthProtocol()
Method Detail |
---|
public java.lang.Object read(java.io.InputStream is) throws java.io.IOException
TcpProtocol
read
in interface TcpProtocol
read
in class LengthProtocol
is
- the input stream
java.io.IOException
- if an exception occurspublic java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader classLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |