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
NegotiationException
public abstract boolean accepts(InputStream in) throws IOException
IOException
public abstract NegotiationMessage createMessage(InputStream in) throws IOException
IOException
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.