org.mobicents.slee.resource.diameter.base.events.avp
Class DiameterURIAvpImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.avp.DiameterURIAvpImpl
All Implemented Interfaces:
DiameterURIAvp

public class DiameterURIAvpImpl
extends java.lang.Object
implements DiameterURIAvp


Field Summary
static int PROTOCOL_DIAMETER
           
static int PROTOCOL_RADIUS
           
static int PROTOCOL_TACACSPLUS
           
static int TRANSPORT_SCTP
           
static int TRANSPORT_TCP
           
static int TRANSPORT_UDP
           
 
Constructor Summary
DiameterURIAvpImpl(java.lang.String uri)
           
DiameterURIAvpImpl(java.lang.String fqdn, int port, int protocol, int transport, boolean secure)
           
 
Method Summary
 byte[] getBytes()
          Return the contents of this URI as a byte array.
 java.lang.String getHostname()
           
 int getPort()
           
 int getProtocol()
           
 boolean getSecure()
           
 int getTransport()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRANSPORT_TCP

public static final int TRANSPORT_TCP
See Also:
Constant Field Values

TRANSPORT_SCTP

public static final int TRANSPORT_SCTP
See Also:
Constant Field Values

TRANSPORT_UDP

public static final int TRANSPORT_UDP
See Also:
Constant Field Values

PROTOCOL_DIAMETER

public static final int PROTOCOL_DIAMETER
See Also:
Constant Field Values

PROTOCOL_RADIUS

public static final int PROTOCOL_RADIUS
See Also:
Constant Field Values

PROTOCOL_TACACSPLUS

public static final int PROTOCOL_TACACSPLUS
See Also:
Constant Field Values
Constructor Detail

DiameterURIAvpImpl

public DiameterURIAvpImpl(java.lang.String fqdn,
                          int port,
                          int protocol,
                          int transport,
                          boolean secure)

DiameterURIAvpImpl

public DiameterURIAvpImpl(java.lang.String uri)
                   throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException
Method Detail

getSecure

public boolean getSecure()
Specified by:
getSecure in interface DiameterURIAvp

getHostname

public java.lang.String getHostname()
Specified by:
getHostname in interface DiameterURIAvp

getPort

public int getPort()
Specified by:
getPort in interface DiameterURIAvp

getProtocol

public int getProtocol()
Specified by:
getProtocol in interface DiameterURIAvp

getTransport

public int getTransport()
Specified by:
getTransport in interface DiameterURIAvp

getBytes

public byte[] getBytes()
Return the contents of this URI as a byte array. Technically this type derives from OctetString, so we need to be able to return the value in the base type.

Specified by:
getBytes in interface DiameterURIAvp
Returns:
the result of toString().getBytes()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008. All Rights Reserved.