Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter
Class GenericMessageFactory

java.lang.Object
  extended by com.bea.wcp.diameter.GenericMessageFactory

All Implemented Interfaces:
MessageFactory

public class GenericMessageFactory
extends java.lang.Object
implements MessageFactory

Generic message factory. Base class for custom message factory implementations.


Constructor Summary
GenericMessageFactory()
           

 

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.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GenericMessageFactory

public GenericMessageFactory()

Method Detail

createRequest

public Request createRequest(java.nio.ByteBuffer bb,
                             com.bea.wcp.diameter.transport.Connection c)
Description copied from interface: MessageFactory
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.
Specified by:
createRequest in interface MessageFactory
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

public Answer createAnswer(java.nio.ByteBuffer bb,
                           com.bea.wcp.diameter.transport.Connection c)
Specified by:
createAnswer in interface MessageFactory

createRequest

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

createAnswer

public Answer createAnswer(Request req,
                           ResultCode rc)
Specified by:
createAnswer in interface MessageFactory

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.