## Uses of Class
py4j.Gateway

- Packages that use Gateway
  Package | Description
  --- | ---
  py4j |
  py4j.commands |
  py4j.reflection |

- - ### Uses of Gateway in py4j

    Methods in py4j with parameters of type Gateway
    Modifier and Type | Method and Description
    --- | ---
    `protected GatewayConnection` | GatewayServer.`createConnection(Gateway gateway, Socket socket)`
    `static Object` | Protocol.`getObject(String commandPart, Gateway gateway)`
    `static Object` | Protocol.`getPythonProxy(String commandPart, Gateway gateway)` Assumes that commandPart is not empty.
    `static Object` | Protocol.`getReference(String commandPart, Gateway gateway)` Assumes that commandPart is not empty.
    `static Object` | Protocol.`getReturnValue(String returnMessage, Gateway gateway)`
    `protected void` | GatewayConnection.`initCommands(Gateway gateway, List<Class<? extends Command>> commandsClazz)` Override this method to initialize custom commands.

    Constructors in py4j with parameters of type Gateway
    Constructor and Description
    `GatewayConnection(Gateway gateway, Socket socket)`
    `GatewayConnection(Gateway gateway, Socket socket, List<Class<? extends Command>> customCommands, List<GatewayServerListener> listeners)`

  - ### Uses of Gateway in py4j.commands

    Fields in py4j.commands declared as Gateway
    Modifier and Type | Field and Description
    --- | ---
    `protected Gateway` | AbstractCommand.`gateway`

    Methods in py4j.commands with parameters of type Gateway
    Modifier and Type | Method and Description
    --- | ---
    `void` | ShutdownGatewayServerCommand.`init(Gateway gateway)`
    `void` | ReflectionCommand.`init(Gateway gateway)`
    `void` | JVMViewCommand.`init(Gateway gateway)`
    `void` | FieldCommand.`init(Gateway gateway)`
    `void` | DirCommand.`init(Gateway gateway)`
    `void` | Command.`init(Gateway gateway)` Called when a command instance is created and assigned to a connection.
    `void` | AbstractCommand.`init(Gateway gateway)`

  - ### Uses of Gateway in py4j.reflection

    Constructors in py4j.reflection with parameters of type Gateway
    Constructor and Description
    `PythonProxyHandler(String id, Gateway gateway)`