public ChannelUriStringBuilder media(final String media)
    {
        switch (media)
        {
            case CommonContext.UDP_MEDIA:
            case CommonContext.IPC_MEDIA:
                break;

            default:
                throw new IllegalArgumentException("invalid media: " + media);
        }

        this.media = media;
        return this;
    }
public ChannelUriStringBuilder media(final String media)
    {
        switch (media)
        {
            case CommonContext.UDP_MEDIA:
            case CommonContext.IPC_MEDIA:
                break;

            default:
                throw new IllegalArgumentException("invalid media: " + media);
        }

        this.media = media;
        return this;
    }
public ChannelUriStringBuilder media ( final String media ) { switch ( media ) { case CommonContext . UDP_MEDIA : case CommonContext . IPC_MEDIA : break ; default : throw new IllegalArgumentException ( "invalid media: " + media ) ; } this . media = media ; return this ; }
Set the media for this channel. Valid values are "udp" and "ipc".

@param media for this channel.
@return this for a fluent API.
Set the media for this channel . Valid values are udp and ipc .