static bool n_HandleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, IntPtr native_p2)
        {
            global::Com.Facebook.Stetho.Websocket.WebSocketHandler    __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Websocket.WebSocketHandler> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.SocketLike             p0     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.SocketLike> (native_p0, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.Http.LightHttpRequest  p1     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpRequest> (native_p1, JniHandleOwnership.DoNotTransfer);
            global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p2     = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpResponse> (native_p2, JniHandleOwnership.DoNotTransfer);
            bool __ret = __this.HandleRequest(p0, p1, p2);

            return(__ret);
        }
Ejemplo n.º 2
0
 public static unsafe void WriteResponseMessage(global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p0, global::Com.Facebook.Stetho.Server.Http.LightHttpServer.HttpMessageWriter p1)
 {
     if (id_writeResponseMessage_Lcom_facebook_stetho_server_http_LightHttpResponse_Lcom_facebook_stetho_server_http_LightHttpServer_HttpMessageWriter_ == IntPtr.Zero)
     {
         id_writeResponseMessage_Lcom_facebook_stetho_server_http_LightHttpResponse_Lcom_facebook_stetho_server_http_LightHttpServer_HttpMessageWriter_ = JNIEnv.GetStaticMethodID(class_ref, "writeResponseMessage", "(Lcom/facebook/stetho/server/http/LightHttpResponse;Lcom/facebook/stetho/server/http/LightHttpServer$HttpMessageWriter;)V");
     }
     try {
         JValue *__args = stackalloc JValue [2];
         __args [0] = new JValue(p0);
         __args [1] = new JValue(p1);
         JNIEnv.CallStaticVoidMethod(class_ref, id_writeResponseMessage_Lcom_facebook_stetho_server_http_LightHttpResponse_Lcom_facebook_stetho_server_http_LightHttpServer_HttpMessageWriter_, __args);
     } finally {
     }
 }
        public virtual unsafe bool HandleRequest(global::Com.Facebook.Stetho.Server.SocketLike p0, global::Com.Facebook.Stetho.Server.Http.LightHttpRequest p1, global::Com.Facebook.Stetho.Server.Http.LightHttpResponse p2)
        {
            if (id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_ == IntPtr.Zero)
            {
                id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_ = JNIEnv.GetMethodID(class_ref, "handleRequest", "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/http/LightHttpRequest;Lcom/facebook/stetho/server/http/LightHttpResponse;)Z");
            }
            try {
                JValue *__args = stackalloc JValue [3];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                __args [2] = new JValue(p2);

                bool __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = JNIEnv.CallBooleanMethod(((global::Java.Lang.Object) this).Handle, id_handleRequest_Lcom_facebook_stetho_server_SocketLike_Lcom_facebook_stetho_server_http_LightHttpRequest_Lcom_facebook_stetho_server_http_LightHttpResponse_, __args);
                }
                else
                {
                    __ret = JNIEnv.CallNonvirtualBooleanMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "handleRequest", "(Lcom/facebook/stetho/server/SocketLike;Lcom/facebook/stetho/server/http/LightHttpRequest;Lcom/facebook/stetho/server/http/LightHttpResponse;)Z"), __args);
                }
                return(__ret);
            } finally {
            }
        }
Ejemplo n.º 4
0
 static void n_Prepare(IntPtr jnienv, IntPtr native__this)
 {
     global::Com.Facebook.Stetho.Server.Http.LightHttpResponse __this = global::Java.Lang.Object.GetObject <global::Com.Facebook.Stetho.Server.Http.LightHttpResponse> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     __this.Prepare();
 }