org.cipango.diameter.api
Interface DiameterServletRequest

All Superinterfaces:
DiameterServletMessage

public interface DiameterServletRequest
extends DiameterServletMessage

Represents Diameter request. When receiving an incoming Diameter request the container creates a DiameterServletRequest and passes it to the handling DiameterListener. For outgoing, locally initiated requests, applications call DiameterFactory.createRequest to obtain a DiameterServletRequest that can then be modified and sent.


Method Summary
 DiameterServletAnswer createAnswer(ResultCode resultCode)
          Creates an answer for this request with the specified result code.
 java.lang.String getDestinationHost()
          Return the content of the destination host AVP.
 java.lang.String getDestinationRealm()
          Return the content of the destination realm AVP.
 
Methods inherited from interface org.cipango.diameter.api.DiameterServletMessage
add, get, getApplicationId, getApplicationSession, getAttribute, getAttributeNames, getAVPs, getCommand, getEndToEndId, getHopByHopId, getOriginHost, getOriginRealm, getSession, getSession, getSessionId, isRequest, removeAttribute, send, setAttribute, setAVPList, size
 

Method Detail

getDestinationRealm

java.lang.String getDestinationRealm()
Return the content of the destination realm AVP.

Returns:
the content of the destination realm AVP.
See Also:
Common.DESTINATION_REALM

getDestinationHost

java.lang.String getDestinationHost()
Return the content of the destination host AVP.

Returns:
the content of the destination host AVP.
See Also:
Common.DESTINATION_HOST

createAnswer

DiameterServletAnswer createAnswer(ResultCode resultCode)
Creates an answer for this request with the specified result code.

Parameters:
resultCode - the answer result code.
Returns:
an answer for this request with the specified result code.


Copyright © 2010. All Rights Reserved.