public class CustomClassLoadingLengthProtocol extends LengthProtocol
NO_MAX_LENGTH
bufferSize, UNLIMITED
EOF, NO_STREAM, STREAM_OK
Constructor and Description |
---|
CustomClassLoadingLengthProtocol() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getClassLoader() |
Object |
read(InputStream is)
Reads the input stream and returns a whole message.
|
void |
setClassLoader(ClassLoader classLoader) |
getMaxMessageLength, isRepeat, setMaxMessageLength, writeByteArray
read, remaining
copy, copy, createResponse, isRethrowExceptionOnRead, nullEmptyArray, safeRead, safeRead, setObjectSerializer, setRethrowExceptionOnRead, write
public Object read(InputStream is) throws IOException
TcpProtocol
read
in interface TcpProtocol
read
in class LengthProtocol
is
- the input streamIOException
- if an exception occurspublic ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.