Package com.sun.corba.ee.impl.ior
Class WireObjectKeyTemplate
- java.lang.Object
-
- com.sun.corba.ee.impl.ior.WireObjectKeyTemplate
-
- All Implemented Interfaces:
ObjectKeyTemplate
,Writeable
public class WireObjectKeyTemplate extends java.lang.Object implements ObjectKeyTemplate
-
-
Field Summary
Fields Modifier and Type Field Description private static ObjectAdapterId
NULL_OBJECT_ADAPTER_ID
private ORB
orb
private static IORSystemException
wrapper
-
Constructor Summary
Constructors Constructor Description WireObjectKeyTemplate(ORB orb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte[]
getAdapterId()
Compute an adapter ID for this template than includes all of the template information.ObjectAdapterId
getObjectAdapterId()
Return the object adapter ID for this template.java.lang.String
getORBId()
Return the ORB ID for this template.ORBVersion
getORBVersion()
int
getServerId()
Return the server ID for this template.ServerRequestDispatcher
getServerRequestDispatcher(ObjectId id)
int
getSubcontractId()
An ID used to determine how to perform operations on this ObjectKeyTemplate.int
hashCode()
private void
initORB(ORB orb)
void
write(ObjectId id, OutputStream os)
void
write(OutputStream os)
Write this object directly to the output stream.
-
-
-
Field Detail
-
orb
private ORB orb
-
wrapper
private static final IORSystemException wrapper
-
NULL_OBJECT_ADAPTER_ID
private static ObjectAdapterId NULL_OBJECT_ADAPTER_ID
-
-
Constructor Detail
-
WireObjectKeyTemplate
public WireObjectKeyTemplate(ORB orb)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
initORB
private void initORB(ORB orb)
-
write
public void write(ObjectId id, OutputStream os)
- Specified by:
write
in interfaceObjectKeyTemplate
-
write
public void write(OutputStream os)
Description copied from interface:Writeable
Write this object directly to the output stream.
-
getSubcontractId
public int getSubcontractId()
Description copied from interface:ObjectKeyTemplate
An ID used to determine how to perform operations on this ObjectKeyTemplate. This id determines how to process requests on this object reference, and what object adapter type to use.- Specified by:
getSubcontractId
in interfaceObjectKeyTemplate
- Returns:
- The subcontract ID
-
getServerId
public int getServerId()
Description copied from interface:ObjectKeyTemplate
Return the server ID for this template. For CORBA 3.0, this should be a String, but it is currently an int in the object key template.- Specified by:
getServerId
in interfaceObjectKeyTemplate
- Returns:
- The ID of the server that handles requests to this IOR"
-
getORBId
public java.lang.String getORBId()
Description copied from interface:ObjectKeyTemplate
Return the ORB ID for this template.- Specified by:
getORBId
in interfaceObjectKeyTemplate
- Returns:
- the ORB ID that created this IOR
-
getObjectAdapterId
public ObjectAdapterId getObjectAdapterId()
Description copied from interface:ObjectKeyTemplate
Return the object adapter ID for this template.- Specified by:
getObjectAdapterId
in interfaceObjectKeyTemplate
- Returns:
- The ObjectAdapterId that identifies the ObjectAdapter that created this IOR
-
getAdapterId
public byte[] getAdapterId()
Description copied from interface:ObjectKeyTemplate
Compute an adapter ID for this template than includes all of the template information. This value is cached to avoid the expense of recomputing it.- Specified by:
getAdapterId
in interfaceObjectKeyTemplate
- Returns:
- adapter ID for this template
-
getORBVersion
public ORBVersion getORBVersion()
- Specified by:
getORBVersion
in interfaceObjectKeyTemplate
-
getServerRequestDispatcher
public ServerRequestDispatcher getServerRequestDispatcher(ObjectId id)
- Specified by:
getServerRequestDispatcher
in interfaceObjectKeyTemplate
-
-