Oracle9iAS Portal Developer Kit

add_proxy function

Contained in package wwctx_api_proxy.

Call this function to add a proxy setting to Oracle Portal. If specified, the port number of the proxy must be a valid integer. If not specified, it defaults to a value of 80.

Note: Only Portal Administrators can use this function.

function add_proxy

(

p_proxy in proxy_record

)

return varchar2;

Version: Oracle9iAS Portal 9.0.2 or later

Parameters:

p_proxy

The proxy record containing details about the proxy.

Datatype: proxy_record

Returns:

This function returns a unique, proxy ID.

Exceptions:

  • If a proxy with the same host_name and port number exists, PROXY_DUPLICATE_EXCEPTION is raised.

  • When security privileges are violated, wwsec_api.ACCESS_DENIED_EXCEPTION is raised.

  • If an unknown error occurs, PROXY_GENERAL_EXCEPTION is raised.

Example:

declare

l_proxy_record wwctx_api_proxy.proxy_record;
l_proxy_id varchar2(32);

begin

l_proxy_record.host_name := 'host.domain.com';

l_proxy_record.port_number := 4000;

l_proxy_id := wwctx_api_proxy.add_proxy
(

l_proxy_record

);

end;

Related topics

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