Overview

Packages

  • None
  • pdb

Classes

  • Java
  • java_AbstractJava
  • java_ApplyArg
  • java_Arg
  • java_ArrayProxy
  • java_ArrayProxyFactory
  • java_CacheEntry
  • java_ChunkedSocketChannel
  • java_class
  • java_Client
  • java_CompositeArg
  • java_EmptyChannel
  • java_ExceptionProxy
  • java_ExceptionProxyFactory
  • java_GlobalRef
  • java_HttpTunnelHandler
  • java_InternalJava
  • java_IteratorProxy
  • java_IteratorProxyFactory
  • java_JavaProxy
  • java_JavaProxyProxy
  • java_NativeParser
  • java_objectIterator
  • java_Parser
  • java_ParserString
  • java_ParserTag
  • java_Protocol
  • java_ProxyFactory
  • java_SimpleFactory
  • java_SimpleHttpHandler
  • java_SimpleHttpTunnelHandler
  • java_SimpleParser
  • java_SocketChannel
  • java_SocketChannelP
  • java_SocketHandler
  • java_ThrowExceptionProxyFactory
  • JavaClass

Interfaces

  • java_JavaType

Exceptions

  • java_ConnectException
  • java_exception
  • java_IllegalArgumentException
  • java_IllegalStateException
  • java_InternalException
  • java_IOException
  • java_JavaException
  • java_RuntimeException
  • JavaException

Functions

  • __javaproxy_Client_getClient
  • Java
  • java_autoload
  • java_autoload_function
  • java_autoload_function5
  • java_begin_document
  • java_call_with_continuation
  • java_cast
  • java_cast_internal
  • java_checkCliSapi
  • java_closure
  • java_closure_array
  • java_context
  • java_defineHostFromInitialQuery
  • java_end_document
  • java_eval
  • java_get_base
  • java_get_closure
  • java_get_context
  • java_get_lifetime
  • java_get_server_name
  • java_get_session
  • java_get_values
  • java_getCompatibilityOption
  • java_getHeader
  • java_inspect
  • java_inspect_internal
  • java_instanceof
  • java_instanceof_internal
  • java_invoke
  • java_is_false
  • java_is_null
  • java_is_true
  • java_isfalse
  • java_isnull
  • java_istrue
  • java_last_exception_clear
  • java_last_exception_get
  • java_require
  • java_reset
  • java_server_name
  • java_session
  • java_session_array
  • java_set_encoding
  • java_set_file_encoding
  • java_shutdown
  • java_truncate
  • java_unwrap
  • java_values
  • java_values_internal
  • java_virtual
  • java_wrap
  • Overview
  • Package
  • Class
  • Todo
  • Deprecated

No package

Classes summary
Java The Java proxy class.
java_AbstractJava

This decorator/bridge overrides all magic methods and delegates to the proxy so that it may handle them or pass them on to the back-end. The actual implementation of this bridge depends on the back-end response, see PROTOCOL.TXT: "p: char ([A]rray, [C]ollection, [O]bject, [E]xception)". See the getProxy() and create() methods in Client.php and writeObject() and getType() in Response.java.

<

p>

java_ApplyArg
java_Arg
java_ArrayProxy
java_ArrayProxyFactory
java_CacheEntry
java_ChunkedSocketChannel Chunked version of the socket channel. Used in phase 2.
java_class
java_Client
java_CompositeArg
java_EmptyChannel A simple channel, used in phase 1
java_ExceptionProxy
java_ExceptionProxyFactory
java_GlobalRef

This class implements a global map which references PHP objects passed to Java In case "java_session()" was called, PHP objects backing the Java proxies are stored in the session allocated from PHP.

java_HttpTunnelHandler

Used when PHP connects to a servlet environment using a PUT request. It uses a chunked, non-persistent stream in phase 1 and will redirect to a simple java_SocketHandler for phase 2.

java_InternalJava
java_IteratorProxy
java_IteratorProxyFactory
java_JavaProxy
java_JavaProxyProxy
java_NativeParser
java_objectIterator
java_Parser
java_ParserString
java_ParserTag
java_Protocol
java_ProxyFactory
java_SimpleFactory
java_SimpleHttpHandler Used when PHP is running within a servlet environment.
java_SimpleHttpTunnelHandler

Used when PHP connects to a servlet environment using a PUT request. It uses a chunked, non-persistent stream in phase 1 and will redirect to a simple java_SocketHandler for phase 2.

java_SimpleParser
java_SocketChannel

A simple socket channel, used in phase 2 or when connecting to a simple socket listener

java_SocketChannelP Persistent version of the above
java_SocketHandler Used when PHP connects to a non-http socket or in phase 2
java_ThrowExceptionProxyFactory
JavaClass
Interfaces summary
java_JavaType Implemented by JavaException and Java.
Exceptions summary
java_ConnectException
java_exception A decorator pattern which overrides all magic methods.
java_IllegalArgumentException
java_IllegalStateException
java_InternalException
java_IOException
java_JavaException
java_RuntimeException
JavaException The java exception proxy.
Functions summary
__javaproxy_Client_getClient
Java Access the java type with the given name.
java_autoload
java_autoload_function
java_autoload_function5
java_begin_document Enters stream mode (asynchronuous protocol).
java_call_with_continuation

Call the current Java continuation with the closed-over PHP environment $kontinuation as its argument.

java_cast Converts the java object obj into a PHP value.
java_cast_internal Only for internal use
java_checkCliSapi
java_closure Wraps a PHP environment.
java_closure_array Only for internal use
java_context Returns the jsr223 script context handle.
java_defineHostFromInitialQuery

Helper function: Extract the URL from base and and set host, port and servlet accordingly. For example when the user has called: require_once("http://localhost:8080/JavaBridge/java/Java.inc"); the JAVA_HOSTS is set to localhost:8080 and JAVA_SERVLET to /JavaBridge/JavaBridge.phpjavabridge.

java_end_document Ends stream mode.
java_eval
java_get_base
java_get_closure Alias for java_closure();
java_get_context Alias for java_context();
java_get_lifetime
java_get_server_name Alias for java_server_name();
java_get_session Alias for java_session();
java_get_values Alias for java_values();
java_getCompatibilityOption
java_getHeader
java_inspect

Returns the contents (public fields, public methods, public classes) of object as a string.

java_inspect_internal Only for internal use
java_instanceof Tests if object is an instance of clazz.
java_instanceof_internal Only for internal use
java_invoke Invoke a method dynamically.
java_is_false Checks whether a value is NULL, 0, "" or false.
java_is_null Checks whether a value is null or not.
java_is_true Checks whether a value is not NULL, 0, "" or false.
java_isfalse Alias for java_is_false();
java_isnull Alias for java_is_null();
java_istrue Alias for java_is_true();
java_last_exception_clear Clear a stored Java exception.
java_last_exception_get Return the last stored Java exception.
java_require

Set the library path. This function should not be used in new programs. Please use <a href="http://php-java-bridge.sourceforge.net/pjb/webapp.php>tomcat or jee hot deployment instead.

java_reset Only for internal use.
java_server_name Returns the name of the back-end or null, if the back-end is not running.
java_session Return a session handle.
java_session_array Only for internal use
java_set_encoding Alias for java_set_file_encoding();
java_set_file_encoding Set the java file encoding, for example UTF-8 or ASCII.
java_shutdown
java_truncate
java_unwrap Unwrap a Java object.
java_values Evaluate a Java object.
java_values_internal Only for internal use
java_virtual Include the output of some Java resource.
java_wrap Alias for java_closure();
VM Bridge API documentation generated by ApiGen