|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.gui.URLTypeConnection
This class implements a URL Connection. It shows a "Connecting..." like dialog.
Constructor Summary | |
URLTypeConnection(java.lang.String URLLocation)
This constructor creates a URLConnectionDialog object with the given URL name. |
|
URLTypeConnection(java.lang.String URLLocation,
boolean showMessages)
This constructor creates a URLConnectionDialog object with the given URL name. |
Method Summary | |
static byte[] |
base64Encode(byte[] data)
This method encodes the given byte[] using the base64-encoding specified in RFC-2045 (Section 6.8). |
static java.lang.String |
base64Encode(java.lang.String str)
This method encodes the given string using the base64-encoding specified in RFC-2045 (Section 6.8). |
java.io.InputStream |
getInputStream()
This method tries to connect to the URL and returns the opened InputStream if available |
java.lang.String |
getProtectedURLLocation()
Returns the current URL location without user:password information |
java.lang.String |
getURLLocation()
Returns the current URL location |
void |
setParent(javax.swing.JDialog dialog)
Sets the parent dialog of the URL Connection dialog and the URL Connection editor |
void |
setParent(javax.swing.JFrame frame)
Sets the parent frame of the URL Connection dialog and the URL Connection editor |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public URLTypeConnection(java.lang.String URLLocation)
url
- java.net.URL The urlpublic URLTypeConnection(java.lang.String URLLocation, boolean showMessages)
url
- java.net.URL The urlshowMessages
- True if you want the error messages and the URL connection editor to be displayedMethod Detail |
public static byte[] base64Encode(byte[] data)
data
- the datapublic static final java.lang.String base64Encode(java.lang.String str)
str
- the stringpublic java.io.InputStream getInputStream()
public java.lang.String getProtectedURLLocation()
public java.lang.String getURLLocation()
public void setParent(javax.swing.JDialog dialog)
dialog
- javax.swing.JDialogpublic void setParent(javax.swing.JFrame frame)
frame
- javax.swing.JFrame
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |