org.jacorb.orb

Class ParsedIOR


public class ParsedIOR
extends java.lang.Object

Class to convert IOR strings into IOR structures

Version:
$Id: ParsedIOR.java,v 1.62 2004/05/06 12:40:00 nicolas Exp $

Author:
Gerald Brose, FU Berlin

Field Summary

protected boolean
endianness

Constructor Summary

ParsedIOR(String object_reference, ORB orb, Logger logger)
Creates a new ParsedIOR instance.
ParsedIOR(String object_reference, ORB orb, Logger logger)
Creates a new ParsedIOR instance.
ParsedIOR(IOR _ior, ORB orb, Logger logger)

Method Summary

static IOR
createObjectIOR(Profile profile)
factory method
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.
boolean
equals(Object o)
static byte[]
extractObjectKey(TargetAddress addr, ORB orb)
This method replaces the unfiyTargetAddress method.
CodeSetComponentInfo
getCodeSetComponentInfo()
String
getCodebaseComponent()
Returns the value of the TAG_JAVA_CODEBASE component from this IOR, or null if no such component exists.
Profile
getEffectiveProfile()
String
getIDString()
IOR
getIOR()
String
getIORString()
TaggedComponentList
getMultipleComponents()
Integer
getORBTypeId()
List
getProfiles()
String
getTypeId()
byte[]
get_object_key()
boolean
isNull()
static boolean
isParsableProtocol(String check)
isParsableProtocol returns true if ParsedIOR can handle the protocol within the string.
protected void
parse(String object_reference)
parse decodes the object_reference passed to ParsedIOR.

Field Details

endianness

protected boolean endianness

Constructor Details

ParsedIOR

public ParsedIOR(String object_reference,
                 ORB orb,
                 Logger logger)
            throws IllegalArgumentException
Creates a new ParsedIOR instance.

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


ParsedIOR

public ParsedIOR(String object_reference,
                 ORB orb,
                 Logger logger)
            throws IllegalArgumentException
Creates a new ParsedIOR instance.

Parameters:
object_reference - a String value
orb - an org.omg.CORBA.ORB value


ParsedIOR

public ParsedIOR(IOR _ior,
                 ORB orb,
                 Logger logger)

Method Details

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 o)


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.


getCodeSetComponentInfo

public CodeSetComponentInfo getCodeSetComponentInfo()


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.


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()


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)
            throws IllegalArgumentException
parse decodes the object_reference passed to ParsedIOR.

Parameters:
object_reference - a String value.