Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.share.url
Class AgentURLEncoder

java.lang.Object
  |
  +--oracle.cabo.share.url.AgentURLEncoder
All Implemented Interfaces:
URLEncoder

public class AgentURLEncoder
extends java.lang.Object
implements URLEncoder

URL encoder that adds a serialized version of the Agent onto the URL so that UIX uses the deserialized form of the Agent as the Agent to generate results for. This class is almost always used by debugging and development tools to simulate the results of using different kinds of Agents.


Constructor Summary
AgentURLEncoder(URLEncoder baseEncoder, Agent forcedAgent)
          Creates an AgentURLEncoder that appends the serialized form of forecedAgent onto the URL to be encoded and then delegates to the baseEncoder.
 
Method Summary
 java.lang.String encodeParameter(java.lang.String key)
          Delegates to the baseEncoder.
 java.lang.String encodeURL(java.lang.String url)
          Encode an URL.
 java.lang.String getDefaultURL()
          Delegates to the baseEncoder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentURLEncoder

public AgentURLEncoder(URLEncoder baseEncoder,
                       Agent forcedAgent)
Creates an AgentURLEncoder that appends the serialized form of forecedAgent onto the URL to be encoded and then delegates to the baseEncoder.

Parameters:
baseEncoded - URLEncoder to use to encode the URL
forcedAgent - Agent to serialize onto the end of encoded URLs.
Method Detail

encodeURL

public java.lang.String encodeURL(java.lang.String url)
Description copied from interface: URLEncoder
Encode an URL.
Specified by:
encodeURL in interface URLEncoder

encodeParameter

public java.lang.String encodeParameter(java.lang.String key)
Delegates to the baseEncoder.
Specified by:
encodeParameter in interface URLEncoder

getDefaultURL

public java.lang.String getDefaultURL()
Delegates to the baseEncoder.
Specified by:
getDefaultURL in interface URLEncoder
Following copied from interface: oracle.cabo.share.url.URLEncoder
Returns:
this is an URL to the current page. This is useful, for example, in a form submission; if the destination of a form has not been set, this default URL can be used to submit the form back to the page it originated from.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.