org.mobicents.slee.resource.diameter.ro.events.avp
Class MessageBodyImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
      extended by org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
          extended by org.mobicents.slee.resource.diameter.ro.events.avp.MessageBodyImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp, MessageBody

public class MessageBodyImpl
extends org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
implements MessageBody

MessageBodyImpl.java
Project: mobicents
8:08:04 PM Apr 11, 2009

Author:
Alexandre Mendonca
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
avpSet
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
code, mnd, name, prt, type, value, vendorId
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Constructor Summary
MessageBodyImpl()
           
MessageBodyImpl(int code, long vendorId, int mnd, int prt, byte[] value)
           
 
Method Summary
 java.lang.String getContentDisposition()
          Returns the value of the Content-Disposition AVP, of type UTF8String.
 long getContentLength()
          Returns the value of the Content-Length AVP, of type Unsigned32.
 java.lang.String getContentType()
          Returns the value of the Content-Type AVP, of type UTF8String.
 Originator getOriginator()
          Returns the value of the Originator AVP, of type Enumerated.
 boolean hasContentDisposition()
          Returns true if the Content-Disposition AVP is present in the message.
 boolean hasContentLength()
          Returns true if the Content-Length AVP is present in the message.
 boolean hasContentType()
          Returns true if the Content-Type AVP is present in the message.
 boolean hasOriginator()
          Returns true if the Originator AVP is present in the message.
 void setContentDisposition(java.lang.String contentDisposition)
          Sets the value of the Content-Disposition AVP, of type UTF8String.
 void setContentLength(long contentLength)
          Sets the value of the Content-Length AVP, of type Unsigned32.
 void setContentType(java.lang.String contentType)
          Sets the value of the Content-Type AVP, of type UTF8String.
 void setOriginator(Originator originator)
          Sets the value of the Originator AVP, of type Enumerated.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
addAvp, addAvp, addAvp, addAvp, byteArrayValue, clone, doubleValue, equals, floatValue, getAvp, getAvp, getAvp, getAvpAsAddress, getAvpAsAddress, getAvpAsCustom, getAvpAsCustom, getAvpAsDiameterIdentity, getAvpAsDiameterIdentity, getAvpAsDiameterURI, getAvpAsDiameterURI, getAvpAsEnumerated, getAvpAsEnumerated, getAvpAsFloat32, getAvpAsFloat32, getAvpAsFloat64, getAvpAsFloat64, getAvpAsGrouped, getAvpAsGrouped, getAvpAsInteger32, getAvpAsInteger32, getAvpAsInteger64, getAvpAsInteger64, getAvpAsIPFilterRule, getAvpAsIPFilterRule, getAvpAsOctetString, getAvpAsOctetString, getAvpAsRaw, getAvpAsRaw, getAvpAsTime, getAvpAsTime, getAvpAsUnsigned32, getAvpAsUnsigned32, getAvpAsUnsigned64, getAvpAsUnsigned64, getAvpAsUTF8String, getAvpAsUTF8String, getAvpsAsAddress, getAvpsAsAddress, getAvpsAsCustom, getAvpsAsCustom, getAvpsAsDiameterIdentity, getAvpsAsDiameterIdentity, getAvpsAsDiameterURI, getAvpsAsDiameterURI, getAvpsAsEnumerated, getAvpsAsEnumerated, getAvpsAsFloat32, getAvpsAsFloat32, getAvpsAsFloat64, getAvpsAsFloat64, getAvpsAsGrouped, getAvpsAsGrouped, getAvpsAsInteger32, getAvpsAsInteger32, getAvpsAsInteger64, getAvpsAsInteger64, getAvpsAsIPFilterRule, getAvpsAsIPFilterRule, getAvpsAsOctetString, getAvpsAsOctetString, getAvpsAsRaw, getAvpsAsRaw, getAvpsAsTime, getAvpsAsTime, getAvpsAsUnsigned32, getAvpsAsUnsigned32, getAvpsAsUnsigned64, getAvpsAsUnsigned64, getAvpsAsUTF8String, getAvpsAsUTF8String, getExtensionAvps, getGenericData, getValue, hasAvp, hasAvp, intValue, longValue, setAvpAsFloat32, setAvpAsFloat64, setAvpAsGrouped, setAvpAsInteger32, setAvpAsInteger64, setAvpAsOctetString, setAvpAsRaw, setAvpAsTime, setAvpAsUnsigned32, setAvpAsUnsigned64, setAvpAsUTF8String, setExtensionAvps, setValue, stringValue
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, hashCode, octetStringValue, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

MessageBodyImpl

public MessageBodyImpl()

MessageBodyImpl

public MessageBodyImpl(int code,
                       long vendorId,
                       int mnd,
                       int prt,
                       byte[] value)
Parameters:
code -
vendorId -
mnd -
prt -
value -
Method Detail

getContentDisposition

public java.lang.String getContentDisposition()
Description copied from interface: MessageBody
Returns the value of the Content-Disposition AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getContentDisposition in interface MessageBody

getContentLength

public long getContentLength()
Description copied from interface: MessageBody
Returns the value of the Content-Length AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getContentLength in interface MessageBody

getContentType

public java.lang.String getContentType()
Description copied from interface: MessageBody
Returns the value of the Content-Type AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getContentType in interface MessageBody

getOriginator

public Originator getOriginator()
Description copied from interface: MessageBody
Returns the value of the Originator AVP, of type Enumerated. A return value of null implies that the AVP has not been set.

Specified by:
getOriginator in interface MessageBody

hasContentDisposition

public boolean hasContentDisposition()
Description copied from interface: MessageBody
Returns true if the Content-Disposition AVP is present in the message.

Specified by:
hasContentDisposition in interface MessageBody

hasContentLength

public boolean hasContentLength()
Description copied from interface: MessageBody
Returns true if the Content-Length AVP is present in the message.

Specified by:
hasContentLength in interface MessageBody

hasContentType

public boolean hasContentType()
Description copied from interface: MessageBody
Returns true if the Content-Type AVP is present in the message.

Specified by:
hasContentType in interface MessageBody

hasOriginator

public boolean hasOriginator()
Description copied from interface: MessageBody
Returns true if the Originator AVP is present in the message.

Specified by:
hasOriginator in interface MessageBody

setContentDisposition

public void setContentDisposition(java.lang.String contentDisposition)
Description copied from interface: MessageBody
Sets the value of the Content-Disposition AVP, of type UTF8String.

Specified by:
setContentDisposition in interface MessageBody

setContentLength

public void setContentLength(long contentLength)
Description copied from interface: MessageBody
Sets the value of the Content-Length AVP, of type Unsigned32.

Specified by:
setContentLength in interface MessageBody

setContentType

public void setContentType(java.lang.String contentType)
Description copied from interface: MessageBody
Sets the value of the Content-Type AVP, of type UTF8String.

Specified by:
setContentType in interface MessageBody

setOriginator

public void setOriginator(Originator originator)
Description copied from interface: MessageBody
Sets the value of the Originator AVP, of type Enumerated.

Specified by:
setOriginator in interface MessageBody


Copyright © 2011. All Rights Reserved.