public class ProtocolProxy<T>
extends java.lang.Object
| Constructor | Description |
|---|---|
ProtocolProxy(java.lang.Class<T> protocol,
T proxy,
boolean supportServerMethodCheck) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
T |
getProxy() |
|
boolean |
isMethodSupported(java.lang.String methodName,
java.lang.Class<?>... parameterTypes) |
Check if a method is supported by the server or not.
|
public ProtocolProxy(java.lang.Class<T> protocol, T proxy, boolean supportServerMethodCheck)
protocol - protocol classproxy - its proxysupportServerMethodCheck - If false proxy will never fetch server
methods and isMethodSupported will always return true. If true,
server methods will be fetched for the first call to
isMethodSupported.public T getProxy()
public boolean isMethodSupported(java.lang.String methodName,
java.lang.Class<?>... parameterTypes)
throws java.io.IOException
methodName - a method's name in String formatparameterTypes - a method's parameter typesjava.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.