public abstract class MessageFactory extends Object
| Constructor and Description |
|---|
MessageFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
accepts(InputStream in)
Peek at the data in the InputStream and return true if this
MessageFactory can handle the data.
|
abstract NegotiationMessage |
createMessage(InputStream in)
Read the message from the InputStream and create the Java
representation of the message.
|
static MessageFactory |
newInstance() |
public static MessageFactory newInstance() throws NegotiationException
NegotiationExceptionpublic abstract boolean accepts(InputStream in) throws IOException
IOExceptionpublic abstract NegotiationMessage createMessage(InputStream in) throws IOException
IOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.