Extension SDK 10.1.2

oracle.ide.net
Class ProtocolConstants

java.lang.Object
  extended byoracle.ide.net.ProtocolConstants

public final class ProtocolConstants
extends java.lang.Object

Defines URL protocols.


Field Summary
static java.lang.String FILE_PROTOCOL
           
static java.lang.String HTTP_PROTOCOL
           
static java.lang.String HTTPS_PROTOCOL
           
static java.lang.String IDE_DISPLAY_PROTOCOL
          Protocol used to identify Nodes whose URL is for display purposes only and does not represent an actual physical resource.
static java.lang.String IDE_PROTOCOL_HEADER
          Protocol header used by all ide protocols.
static java.lang.String IDE_TEXT_PROTOCOL
          Protocol used to identify Nodes that when opened by the user using a URL chooser dialog should be represented by a TextNode.
static java.lang.String JAR_PROTOCOL
           
protected static java.util.List PROTOCOLS
          List of registered ide protocols.
 
Method Summary
protected static void addIdeProtocol(java.lang.String protocol)
          Adds a new ide protocol.
static boolean isIdeProtocol(java.lang.String protocol)
          Checks if the specified protocol starts with "ide.".
static boolean isIdeProtocol(java.lang.String protocol, java.lang.String ideProtocol)
          Checks if the specified protocol starts with the ideProtocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_PROTOCOL

public static final java.lang.String FILE_PROTOCOL
See Also:
Constant Field Values

HTTP_PROTOCOL

public static final java.lang.String HTTP_PROTOCOL
See Also:
Constant Field Values

HTTPS_PROTOCOL

public static final java.lang.String HTTPS_PROTOCOL
See Also:
Constant Field Values

JAR_PROTOCOL

public static final java.lang.String JAR_PROTOCOL
See Also:
Constant Field Values

IDE_PROTOCOL_HEADER

public static final java.lang.String IDE_PROTOCOL_HEADER
Protocol header used by all ide protocols.

See Also:
Constant Field Values

IDE_TEXT_PROTOCOL

public static final java.lang.String IDE_TEXT_PROTOCOL
Protocol used to identify Nodes that when opened by the user using a URL chooser dialog should be represented by a TextNode.

See Also:
Constant Field Values

IDE_DISPLAY_PROTOCOL

public static final java.lang.String IDE_DISPLAY_PROTOCOL
Protocol used to identify Nodes whose URL is for display purposes only and does not represent an actual physical resource.

See Also:
Constant Field Values

PROTOCOLS

protected static final java.util.List PROTOCOLS
List of registered ide protocols.

Method Detail

isIdeProtocol

public static boolean isIdeProtocol(java.lang.String protocol)
Checks if the specified protocol starts with "ide.". If it does the method returns true.


isIdeProtocol

public static boolean isIdeProtocol(java.lang.String protocol,
                                    java.lang.String ideProtocol)
Checks if the specified protocol starts with the ideProtocol. If it does the method returns true.


addIdeProtocol

protected static void addIdeProtocol(java.lang.String protocol)
Adds a new ide protocol. This method should not be called directly. Use the URLFileSystem.registerHelper( String protocol, URLFileSystemHelper helper ) method to register an ide protocol helper. That method will then call the addIdeProtocol.


Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.