net.java.slee.resource.diameter.base.events.avp
Interface DiameterURIAvp

All Known Implementing Classes:
DiameterURIAvpImpl

public interface DiameterURIAvp

Java class to represent the DiameterURI AVP type. The DiameterURI MUST follow the Uniform Resource Identifiers (URI) syntax [URI] rules specified below.

      "aaa://" FQDN [ port ] [ transport ] [ protocol ]

                      ; No transport security

      "aaas://" FQDN [ port ] [ transport ] [ protocol ]

                      ; Transport security used

      FQDN               = Fully Qualified Host Name

      port               = ":" 1*DIGIT

                      ; One of the ports used to listen for incoming connections.
                      ; If absent, the default Diameter port (3868) is assumed.

      transport          = ";transport=" transport-protocol

                      ; One of the transports used to listen
                      ; for incoming connections.  If absent,
                      ; the default SCTP [SCTP] protocol is
                      ; assumed.  UDP MUST NOT be used when
                      ; the aaa-protocol field is set to
                      ; diameter.

      transport-protocol = ( "tcp" / "sctp" / "udp" )

      protocol           = ";protocol=" aaa-protocol

                      ; If absent, the default AAA protocol
                      ; is diameter.

      aaa-protocol       = ( "diameter" / "radius" / "tacacs+" )

      The following are examples of valid Diameter host identities:

      aaa://host.example.com;transport=tcp
      aaa://host.example.com:6666;transport=tcp
      aaa://host.example.com;protocol=diameter
      aaa://host.example.com:6666;protocol=diameter
      aaa://host.example.com:6666;transport=tcp;protocol=diameter
      aaa://host.example.com:1813;transport=udp;protocol=radius

Author:
Open Cloud

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()
           
 

Method Detail

getSecure

boolean getSecure()

getHostname

java.lang.String getHostname()

getPort

int getPort()

getProtocol

int getProtocol()

getTransport

int getTransport()

getBytes

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.

Returns:
the result of toString().getBytes()


Copyright © 2008. All Rights Reserved.