Oracle9iAS Portal Developer Kit

get_proxy_id function

Contained in package wwctx_api_proxy.

Call this function to return the ID of a proxy, given the proxy host name and port number.

function get_proxy_id

(

p_proxy_hostname in varchar2,
p_proxy_portnumber in varchar2

)

return varchar2;

Version: Oracle9iAS Portal 9.0.2 or later

Parameters:

p_proxy_hostname

The host name of the proxy required.

The format of the host name should be ‘host.domain.com’. If ‘http’ or ‘https’ is included before the host name, it is removed.

Datatype: varchar2

p_proxy_portnumber

The port number of the proxy required.

Datatype: varchar2

Returns:

This function returns the ID of a requested proxy.

Exceptions:

  • If the proxy is not found, PROXY_NOT_FOUND_EXCEPTION is raised.

  • If an unknown error occurs, PROXY_GENERAL_EXCEPTION is raised.

Example:

l_proxy_id varchar2;
l_proxy_id := wwctx_api_proxy.get_proxy_id
(

p_proxy_hostname => 'host.domain.com',
p_proxy_portnumber => 4000

);

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio