org.jacorb.orb

Class ParsedIOR

public class ParsedIOR extends Object

Class to convert IOR strings into IOR structures

Version: $Id: ParsedIOR.java,v 1.80 2006/08/03 16:40:12 alphonse.bendt Exp $

Author: Gerald Brose

Field Summary
protected booleanendianness
Constructor Summary
ParsedIOR(ORB orb, String object_reference)
Creates a new ParsedIOR instance.
ParsedIOR(ORB orb, IOR ior)
Creates a new ParsedIOR instance.
Method Summary
static IORcreateObjectIOR(Profile profile)
factory method
voiddecode(IOR _ior)
When multiple internet IOP tags are present, they will probably have different versions, we will use the highest version between 0 and 1.
booleanequals(Object other)
equals contract is that they have the same IOR string and the same effective profile. i.e. if one profile is SSL enabled then this will return false.
static byte[]extractObjectKey(TargetAddress addr, ORB orb)
This method replaces the unfiyTargetAddress method.
StringgetCodebaseComponent()
Returns the value of the TAG_JAVA_CODEBASE component from this IOR, or null if no such component exists.
CodeSetComponentInfogetCodeSetComponentInfo()
ProfilegetEffectiveProfile()
StringgetIDString()
IORgetIOR()
StringgetIORString()
TaggedComponentListgetMultipleComponents()
IntegergetORBTypeId()
ListgetProfiles()
StringgetTypeId()
byte[]get_object_key()
inthashCode()
booleanisNull()
static booleanisParsableProtocol(String check)
isParsableProtocol returns true if ParsedIOR can handle the protocol within the string.
protected voidparse(String object_reference)
parse decodes the object_reference passed to ParsedIOR.
voidsetProfileSelector(ProfileSelector sel)

Field Detail

endianness

protected boolean endianness

Constructor Detail

ParsedIOR

public ParsedIOR(ORB orb, String object_reference)
Creates a new ParsedIOR instance.

Parameters: orb an org.jacorb.orb.ORB value object_reference a String value

ParsedIOR

public ParsedIOR(ORB orb, IOR ior)
Creates a new ParsedIOR instance.

Parameters: orb an org.jacorb.orb.ORB value ior an IOR value

Method Detail

createObjectIOR

public static IOR createObjectIOR(Profile profile)
factory method

decode

public void decode(IOR _ior)
When multiple internet IOP tags are present, they will probably have different versions, we will use the highest version between 0 and 1.

equals

public boolean equals(Object other)
equals contract is that they have the same IOR string and the same effective profile. i.e. if one profile is SSL enabled then this will return false.

Parameters: other an Object value

Returns: a boolean value

extractObjectKey

public static byte[] extractObjectKey(TargetAddress addr, ORB orb)
This method replaces the unfiyTargetAddress method.

It will extract an object key from any given GIOP::TargetAddress assuming an appropriate ETF::Factories implementation is availble for the profile in use.

getCodebaseComponent

public String getCodebaseComponent()
Returns the value of the TAG_JAVA_CODEBASE component from this IOR, or null if no such component exists. The component is first searched in the effective profile, if that is an IIOPProfile, and failing that, in the MULTIPLE_COMPONENTS list.

getCodeSetComponentInfo

public CodeSetComponentInfo getCodeSetComponentInfo()

getEffectiveProfile

public Profile getEffectiveProfile()

getIDString

public String getIDString()

getIOR

public IOR getIOR()

getIORString

public String getIORString()

getMultipleComponents

public TaggedComponentList getMultipleComponents()

getORBTypeId

public Integer getORBTypeId()

getProfiles

public List getProfiles()

getTypeId

public String getTypeId()

get_object_key

public byte[] get_object_key()

hashCode

public int hashCode()

isNull

public boolean isNull()

isParsableProtocol

public static boolean isParsableProtocol(String check)
isParsableProtocol returns true if ParsedIOR can handle the protocol within the string.

Parameters: check a String a string containing a protocol.

Returns: a boolean denoting whether ParsedIOR can handle this protocol

parse

protected void parse(String object_reference)
parse decodes the object_reference passed to ParsedIOR.

Parameters: object_reference a String value.

Throws: IllegalArgumentException if object_reference is null or the designated resource cannot be found.

setProfileSelector

public void setProfileSelector(ProfileSelector sel)