public class ProtocolProxy<T> extends Object
Constructor and Description |
---|
ProtocolProxy(Class<T> protocol,
T proxy,
boolean supportServerMethodCheck)
Constructor
|
Modifier and Type | Method and Description |
---|---|
T |
getProxy() |
boolean |
isMethodSupported(String methodName,
Class<?>... parameterTypes)
Check if a method is supported by the server or not
|
public ProtocolProxy(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(String methodName, Class<?>... parameterTypes) throws IOException
methodName
- a method's name in String formatparameterTypes
- a method's parameter typesIOException
Copyright © 2013 Apache Software Foundation. All rights reserved.