Oracle Corp.

Oracle WebLogic Communications Server 10.1 API Reference


com.bea.wcp.diameter.cc
Class CCR

java.lang.Object
  extended bycom.bea.wcp.diameter.Message
      extended bycom.bea.wcp.diameter.Request
          extended bycom.bea.wcp.diameter.cc.CCR

public class CCR
extends Request

Diameter Credit-Control-Request. Provides validation for mandatory Service-Context-Id, CC-Request-Type, and CC-Request-Number AVPs.

Copyright © 2008 Oracle Corp. All Rights Reserved.

Field Summary
 
Fields inherited from class com.bea.wcp.diameter.Message
FLAG_ERROR, FLAG_POTENTIALLY_RETRANSMITTED, FLAG_PROXIABLE, FLAG_REQUEST, FLAGS_MASK, HEADER_SIZE, VERSION
 
Constructor Summary
CCR(java.nio.ByteBuffer bb, Connection c)
           
CCR(Node node, int appId, java.lang.String sessionId)
           
 
Method Summary
 int getCCRequestNumber()
           
 RequestType getCCRequestType()
           
 java.lang.String getServiceContextId()
           
 void setCCRequestNumber(int n)
           
 void setCCRequestType(RequestType type)
           
 void setServiceContextId(java.lang.String id)
           
 void validate()
          Validates the message by validating each message AVP.
protected  void validateAvp(Avp avp)
           
 
Methods inherited from class com.bea.wcp.diameter.Request
cancel, commit, createAnswer, createAnswer, getAnswer, getApplicationId, getDestinationHost, getDestinationPeers, getDestinationRealm, getSession, isAnswered, isCommitted, isThreadWaiting, preValidate, preValidateAvp, send, send, sendAndWait, sendAndWait, sendError, setAnswer, setApplicationId, setDestinationHost, setDestinationRealm, setIsPotentiallyRetransmitted, setSession, unsetDestinationHost
 
Methods inherited from class com.bea.wcp.diameter.Message
addAvp, addAvp, addAvp, decode, decodeAvps, encode, encode, getAppId, getAvp, getAvp, getAvpList, getCode, getCode, getCommand, getConnection, getEffectiveSessionId, getEndToEndId, getHopByHopId, getLength, getOriginHost, getOriginRealm, getSessionId, getVersion, isAnswer, isError, isPotentiallyRetransmitted, isProxiable, isRequest, toLoggableString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CCR

public CCR(java.nio.ByteBuffer bb,
           Connection c)

CCR

public CCR(Node node,
           int appId,
           java.lang.String sessionId)
Method Detail

getCCRequestNumber

public int getCCRequestNumber()

getCCRequestType

public RequestType getCCRequestType()

getServiceContextId

public java.lang.String getServiceContextId()

setCCRequestNumber

public void setCCRequestNumber(int n)

setCCRequestType

public void setCCRequestType(RequestType type)

setServiceContextId

public void setServiceContextId(java.lang.String id)

validate

public void validate()
              throws MessageException
Description copied from class: Message
Validates the message by validating each message AVP. If any AVP values are cached as message fields they are cleared first. This supports validation of both received and originated messages.

Overrides:
validate in class Message
Throws:
MessageException - if the message was invalid

validateAvp

protected void validateAvp(Avp avp)
                    throws AvpException
Overrides:
validateAvp in class Message
Throws:
AvpException

Documentation is available at
http://e-docs.bea.com/wlcp/wlss40/
Copyright 2008 Oracle Corp.