Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.security.auth.callback
Class URLCallback

java.lang.Object
  extended by weblogic.security.auth.callback.URLCallback
All Implemented Interfaces:
Callback

public class URLCallback
extends Object
implements Callback

Underlying security services instantiate and pass a URLCallback to the invokeCallback method of a CallbackHandler to retrieve URL information.

See Also:
CallbackHandler

Constructor Summary
URLCallback(String prompt)
          Construct a URLCallback with a prompt.
URLCallback(String prompt, String defaultURL)
          Construct a URLCallback with a prompt and default URL.
 
Method Summary
 String getdefaultURL()
          Get the default URL.
 String getPrompt()
          Get the prompt.
 String getURL()
          The retrieved URL.
 void setURL(String URL)
          Set the value of the URL attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLCallback

public URLCallback(String prompt)
Construct a URLCallback with a prompt.

Parameters:
prompt - The prompt used to request the URL.
Throws:
IllegalArgumentException - if prompt is null or if prompt has a length of 0.

URLCallback

public URLCallback(String prompt,
                   String defaultURL)
Construct a URLCallback with a prompt and default URL.

Parameters:
prompt - The prompt used to request the information.
defaultURL - The URL used as the default URL displayed with the prompt.
Throws:
IllegalArgumentException - if prompt is null, if prompt has a length of 0, if defaultURL is null, or if defaultURL has a length of 0.
Method Detail

getPrompt

public String getPrompt()
Get the prompt.

Returns:
The prompt.

getdefaultURL

public String getdefaultURL()
Get the default URL.

Returns:
The default URL, or null if this URLCallback was not instantiated with a defaultURL.

setURL

public void setURL(String URL)
Set the value of the URL attribute.

Parameters:
URL - The retrieved URL (which may be null).
See Also:
URLCallback.getURL()

getURL

public String getURL()
The retrieved URL.

Returns:
The retrieved URL (which may be null).

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01