public class GenericMessageFactory extends Object implements MessageFactory
Constructor and Description |
---|
GenericMessageFactory() |
Modifier and Type | Method and Description |
---|---|
Answer |
createAnswer(ByteBuffer bb,
com.bea.wcp.diameter.transport.Connection c) |
Answer |
createAnswer(Request req,
ResultCode rc) |
Request |
createRequest(ByteBuffer bb,
com.bea.wcp.diameter.transport.Connection c)
Decodes Diameter message from a byte buffer.
|
Request |
createRequest(Node node,
Command cmd,
int appId,
String sessionId)
Creates a new Message with the specified command.
|
public Request createRequest(ByteBuffer bb, com.bea.wcp.diameter.transport.Connection c)
MessageFactory
createRequest
in interface MessageFactory
bb
- the bytes to be decodedc
- the connection from which the message was receivedpublic Answer createAnswer(ByteBuffer bb, com.bea.wcp.diameter.transport.Connection c)
createAnswer
in interface MessageFactory
public Request createRequest(Node node, Command cmd, int appId, String sessionId)
MessageFactory
createRequest
in interface MessageFactory
cmd
- the command for the messagepublic Answer createAnswer(Request req, ResultCode rc)
createAnswer
in interface MessageFactory