Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter
Interface MessageFactory

All Known Implementing Classes:
GenericMessageFactory

public interface MessageFactory

A MessageFactory can be optionally specified when defining a new Diameter command. Applications can override the default decoder for received messages in order to create Diameter Request and Answer objects of a more specified type.


Method Summary
 Answer createAnswer(java.nio.ByteBuffer bb, com.bea.wcp.diameter.transport.Connection c)
           
 Answer createAnswer(Request req, ResultCode rc)
           
 Request createRequest(java.nio.ByteBuffer bb, com.bea.wcp.diameter.transport.Connection c)
          Decodes Diameter message from a byte buffer.
 Request createRequest(Node node, Command cmd, int appId, java.lang.String sessionId)
          Creates a new Message with the specified command.

 

Method Detail

createRequest

Request createRequest(java.nio.ByteBuffer bb,
                      com.bea.wcp.diameter.transport.Connection c)
Decodes Diameter message from a byte buffer. This method should be sure to return Message objects of type Request if the message is a request, otherwise it should return objects of type Answer.
Parameters:
bb - the bytes to be decoded
c - the connection from which the message was received
Returns:
the Message decoded from the specified bytes

createAnswer

Answer createAnswer(java.nio.ByteBuffer bb,
                    com.bea.wcp.diameter.transport.Connection c)

createRequest

Request createRequest(Node node,
                      Command cmd,
                      int appId,
                      java.lang.String sessionId)
Creates a new Message with the specified command. By implementing this method, custom factories can be used to create more specified Message object types.
Parameters:
cmd - the command for the message
Returns:
the resulting Message object

createAnswer

Answer createAnswer(Request req,
                    ResultCode rc)

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.