From 31d794be59cb2d1bf264df79f471b0c8d5f5a457 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:40:26 +0000 Subject: Moving to site trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882841 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/ejb/corba/Java2IDLUtil.html | 576 +++++++++++++++++++++ 1 file changed, 576 insertions(+) create mode 100644 site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.html (limited to 'site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.html') diff --git a/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.html b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.html new file mode 100644 index 0000000000..6baf8d6898 --- /dev/null +++ b/site/trunk/site-publish/doc/javadoc/java-sca-1.4/org/apache/tuscany/sca/binding/ejb/corba/Java2IDLUtil.html @@ -0,0 +1,576 @@ + + + + + + +Java2IDLUtil + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.tuscany.sca.binding.ejb.corba +
+Class Java2IDLUtil

+
+java.lang.Object
+  extended by org.apache.tuscany.sca.binding.ejb.corba.Java2IDLUtil
+
+
+
+
public final class Java2IDLUtil
extends java.lang.Object
+ + +

+Various utility functions. +

+ Note: #getORB() and #getCodec() rely on UtilInitializer to initialize the ORB and codec. +

+ +

+

+
See Also:
UtilInitializer
+
+ +

+ + + + + + + + + + + +
+Constructor Summary
Java2IDLUtil() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+static java.lang.StringbuildScopedUserName(java.lang.String user, + java.lang.String domain) + +
+           
+static java.lang.StringbyteToString(byte[] data) + +
+           
+static java.lang.String[]createCorbaIds(java.lang.Class type) + +
+           
+static java.lang.StringextractUserNameFromScopedName(byte[] scopedNameBytes) + +
+          See csiv2 Specification 16.2.5 par.
+static java.lang.StringextractUserNameFromScopedName(java.lang.String scopedUserName) + +
+           
+static org.omg.IOP.CodecgetCodec() + +
+           
+static java.lang.StringgetExceptionId(java.lang.Class exceptionType) + +
+           
+static HandleDelegategetHandleDelegate() + +
+           
+static org.omg.CORBA.ORBgetORB() + +
+           
+static java.util.MapmapMethodToOperation(java.lang.Class intfClass) + +
+           
+static java.util.MapmapOperationToMethod(java.lang.Class intfClass) + +
+           
+static java.lang.ObjectreadObject(java.lang.Class type, + org.omg.CORBA_2_3.portable.InputStream in) + +
+           
+static voidsetORB(org.omg.CORBA.ORB orb) + +
+           
+static voidthrowException(java.lang.reflect.Method method, + org.omg.CORBA_2_3.portable.InputStream in) + +
+           
+static voidwriteObject(java.lang.Class type, + java.lang.Object object, + org.omg.CORBA_2_3.portable.OutputStream out) + +
+           
+static org.omg.CORBA_2_3.portable.OutputStreamwriteUserException(java.lang.reflect.Method method, + org.omg.CORBA.portable.ResponseHandler reply, + java.lang.Exception exception) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+Java2IDLUtil

+
+public Java2IDLUtil()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getORB

+
+public static org.omg.CORBA.ORB getORB()
+
+
+
+
+
+
+ +

+setORB

+
+public static void setORB(org.omg.CORBA.ORB orb)
+                   throws org.omg.CORBA.UserException
+
+
+ +
Throws: +
org.omg.CORBA.UserException
+
+
+
+ +

+getCodec

+
+public static org.omg.IOP.Codec getCodec()
+
+
+
+
+
+
+ +

+getHandleDelegate

+
+public static HandleDelegate getHandleDelegate()
+                                        throws javax.naming.NamingException
+
+
+ +
Throws: +
javax.naming.NamingException
+
+
+
+ +

+extractUserNameFromScopedName

+
+public static java.lang.String extractUserNameFromScopedName(byte[] scopedNameBytes)
+                                                      throws java.io.UnsupportedEncodingException
+
+
See csiv2 Specification 16.2.5 par. 63-64. We extract the username if any and un-escape any + escaped \ and @ characters. +

+

+
Parameters:
scopedNameBytes - +
Returns:
+
Throws: +
java.io.UnsupportedEncodingException
+
+
+
+ +

+extractUserNameFromScopedName

+
+public static java.lang.String extractUserNameFromScopedName(java.lang.String scopedUserName)
+
+
+
+
+
+
+ +

+buildScopedUserName

+
+public static java.lang.String buildScopedUserName(java.lang.String user,
+                                                   java.lang.String domain)
+
+
+
+
+
+
+ +

+byteToString

+
+public static java.lang.String byteToString(byte[] data)
+
+
+
+
+
+
+ +

+writeObject

+
+public static void writeObject(java.lang.Class type,
+                               java.lang.Object object,
+                               org.omg.CORBA_2_3.portable.OutputStream out)
+
+
+
+
+
+
+ +

+readObject

+
+public static java.lang.Object readObject(java.lang.Class type,
+                                          org.omg.CORBA_2_3.portable.InputStream in)
+
+
+
+
+
+
+ +

+throwException

+
+public static void throwException(java.lang.reflect.Method method,
+                                  org.omg.CORBA_2_3.portable.InputStream in)
+                           throws java.lang.Throwable
+
+
+ +
Throws: +
java.lang.Throwable
+
+
+
+ +

+writeUserException

+
+public static org.omg.CORBA_2_3.portable.OutputStream writeUserException(java.lang.reflect.Method method,
+                                                                         org.omg.CORBA.portable.ResponseHandler reply,
+                                                                         java.lang.Exception exception)
+                                                                  throws java.lang.Exception
+
+
+ +
Throws: +
java.lang.Exception
+
+
+
+ +

+getExceptionId

+
+public static java.lang.String getExceptionId(java.lang.Class exceptionType)
+
+
+
+
+
+
+ +

+createCorbaIds

+
+public static java.lang.String[] createCorbaIds(java.lang.Class type)
+
+
+
+
+
+
+ +

+mapMethodToOperation

+
+public static java.util.Map mapMethodToOperation(java.lang.Class intfClass)
+
+
+
+
+
+
+ +

+mapOperationToMethod

+
+public static java.util.Map mapOperationToMethod(java.lang.Class intfClass)
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3