Class RpcContext

java.lang.Object
com.alibaba.dubbo.rpc.RpcContext

@Deprecated public class RpcContext extends Object
Deprecated.
  • Constructor Details

    • RpcContext

      public RpcContext(org.apache.dubbo.rpc.RpcContext newRpcContext)
      Deprecated.
  • Method Details

    • getContext

      public static RpcContext getContext()
      Deprecated.
    • getServerContext

      public static RpcContext getServerContext()
      Deprecated.
    • getClientResponseContext

      public static RpcContext getClientResponseContext()
      Deprecated.
    • getServerResponseContext

      public static RpcContext getServerResponseContext()
      Deprecated.
    • removeClientResponseContext

      public static void removeClientResponseContext()
      Deprecated.
    • removeServerResponseContext

      public static void removeServerResponseContext()
      Deprecated.
    • removeServerContext

      public static void removeServerContext()
      Deprecated.
    • removeContext

      public static void removeContext()
      Deprecated.
    • getRequest

      public Object getRequest()
      Deprecated.
    • getRequest

      public <T> T getRequest(Class<T> clazz)
      Deprecated.
    • setRequest

      public void setRequest(Object request)
      Deprecated.
    • getResponse

      public Object getResponse()
      Deprecated.
      Get the response object of the underlying RPC protocol, e.g. HttpServletResponse
      Returns:
      null if the underlying protocol doesn't provide support for getting response
    • getResponse

      public <T> T getResponse(Class<T> clazz)
      Deprecated.
      Get the response object of the underlying RPC protocol, e.g. HttpServletResponse
      Returns:
      null if the underlying protocol doesn't provide support for getting response or the response is not of the specified type
    • setResponse

      public void setResponse(Object response)
      Deprecated.
    • isProviderSide

      public boolean isProviderSide()
      Deprecated.
      is provider side.
      Returns:
      provider side.
    • isConsumerSide

      public boolean isConsumerSide()
      Deprecated.
      is consumer side.
      Returns:
      consumer side.
    • getUrls

      public List<URL> getUrls()
      Deprecated.
    • setUrls

      public void setUrls(List<URL> urls)
      Deprecated.
    • getUrl

      public URL getUrl()
      Deprecated.
    • setUrl

      public void setUrl(URL url)
      Deprecated.
    • getMethodName

      public String getMethodName()
      Deprecated.
    • setMethodName

      public void setMethodName(String methodName)
      Deprecated.
    • getParameterTypes

      public Class<?>[] getParameterTypes()
      Deprecated.
    • setParameterTypes

      public void setParameterTypes(Class<?>[] parameterTypes)
      Deprecated.
    • getArguments

      public Object[] getArguments()
      Deprecated.
    • setArguments

      public void setArguments(Object[] arguments)
      Deprecated.
    • setLocalAddress

      public RpcContext setLocalAddress(String host, int port)
      Deprecated.
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
      Deprecated.
      get local address.
      Returns:
      local address
    • setLocalAddress

      public RpcContext setLocalAddress(InetSocketAddress address)
      Deprecated.
    • getLocalAddressString

      public String getLocalAddressString()
      Deprecated.
    • getLocalHostName

      public String getLocalHostName()
      Deprecated.
    • setRemoteAddress

      public RpcContext setRemoteAddress(String host, int port)
      Deprecated.
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()
      Deprecated.
    • setRemoteAddress

      public RpcContext setRemoteAddress(InetSocketAddress address)
      Deprecated.
    • getRemoteAddressString

      public String getRemoteAddressString()
      Deprecated.
    • getRemoteHostName

      public String getRemoteHostName()
      Deprecated.
    • getLocalHost

      public String getLocalHost()
      Deprecated.
    • getLocalPort

      public int getLocalPort()
      Deprecated.
    • getRemoteHost

      public String getRemoteHost()
      Deprecated.
    • getRemotePort

      public int getRemotePort()
      Deprecated.
    • getAttachment

      public String getAttachment(String key)
      Deprecated.
    • setAttachment

      public RpcContext setAttachment(String key, String value)
      Deprecated.
    • removeAttachment

      public RpcContext removeAttachment(String key)
      Deprecated.
    • getAttachments

      public Map<String,String> getAttachments()
      Deprecated.
    • setAttachments

      public RpcContext setAttachments(Map<String,String> attachment)
      Deprecated.
    • clearAttachments

      public void clearAttachments()
      Deprecated.
    • get

      public Map<String,Object> get()
      Deprecated.
      get values.
      Returns:
      values
    • set

      public RpcContext set(String key, Object value)
      Deprecated.
      set value.
      Parameters:
      key -
      value -
      Returns:
      context
    • remove

      public RpcContext remove(String key)
      Deprecated.
    • get

      public Object get(String key)
      Deprecated.
    • getInvocation

      public Invocation getInvocation()
      Deprecated.
    • isServerSide

      @Deprecated public boolean isServerSide()
      Deprecated.
    • isClientSide

      @Deprecated public boolean isClientSide()
      Deprecated.
    • getInvoker

      @Deprecated public Invoker<?> getInvoker()
      Deprecated.
    • getInvokers

      @Deprecated public List<Invoker<?>> getInvokers()
      Deprecated.
    • asyncCall

      public <T> Future<T> asyncCall(Callable<T> callable)
      Deprecated.
      Async invocation. Timeout will be handled even if Future.get() is not called.
      Parameters:
      callable -
      Returns:
      get the return result from future.get()
    • asyncCall

      public void asyncCall(Runnable runnable)
      Deprecated.
      one way async call, send request only, and result is not required
      Parameters:
      runnable -
    • getFuture

      public <T> Future<T> getFuture()
      Deprecated.
    • setFuture

      public void setFuture(CompletableFuture<?> future)
      Deprecated.