Class JaxrsHttpRequestAdapter

java.lang.Object
org.apache.dubbo.rpc.protocol.tri.rest.support.jaxrs.JaxrsHttpRequestAdapter
All Implemented Interfaces:
org.jboss.resteasy.spi.HttpRequest

public final class JaxrsHttpRequestAdapter extends Object implements org.jboss.resteasy.spi.HttpRequest
  • Constructor Details

    • JaxrsHttpRequestAdapter

      public JaxrsHttpRequestAdapter(org.apache.dubbo.remoting.http12.HttpRequest request)
  • Method Details

    • getHttpHeaders

      public javax.ws.rs.core.HttpHeaders getHttpHeaders()
      Specified by:
      getHttpHeaders in interface org.jboss.resteasy.spi.HttpRequest
    • getMutableHeaders

      public javax.ws.rs.core.MultivaluedMap<String,String> getMutableHeaders()
      Specified by:
      getMutableHeaders in interface org.jboss.resteasy.spi.HttpRequest
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface org.jboss.resteasy.spi.HttpRequest
    • setInputStream

      public void setInputStream(InputStream stream)
      Specified by:
      setInputStream in interface org.jboss.resteasy.spi.HttpRequest
    • getUri

      public org.jboss.resteasy.spi.ResteasyUriInfo getUri()
      Specified by:
      getUri in interface org.jboss.resteasy.spi.HttpRequest
    • getHttpMethod

      public String getHttpMethod()
      Specified by:
      getHttpMethod in interface org.jboss.resteasy.spi.HttpRequest
    • setHttpMethod

      public void setHttpMethod(String method)
      Specified by:
      setHttpMethod in interface org.jboss.resteasy.spi.HttpRequest
    • setRequestUri

      public void setRequestUri(URI requestUri) throws IllegalStateException
      Specified by:
      setRequestUri in interface org.jboss.resteasy.spi.HttpRequest
      Throws:
      IllegalStateException
    • setRequestUri

      public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
      Specified by:
      setRequestUri in interface org.jboss.resteasy.spi.HttpRequest
      Throws:
      IllegalStateException
    • getFormParameters

      public javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
      Specified by:
      getFormParameters in interface org.jboss.resteasy.spi.HttpRequest
    • getDecodedFormParameters

      public javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
      Specified by:
      getDecodedFormParameters in interface org.jboss.resteasy.spi.HttpRequest
    • getAttribute

      public Object getAttribute(String attribute)
      Specified by:
      getAttribute in interface org.jboss.resteasy.spi.HttpRequest
    • setAttribute

      public void setAttribute(String name, Object value)
      Specified by:
      setAttribute in interface org.jboss.resteasy.spi.HttpRequest
    • removeAttribute

      public void removeAttribute(String name)
      Specified by:
      removeAttribute in interface org.jboss.resteasy.spi.HttpRequest
    • getAttributeNames

      public Enumeration<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface org.jboss.resteasy.spi.HttpRequest
    • getAsyncContext

      public org.jboss.resteasy.spi.ResteasyAsynchronousContext getAsyncContext()
      Specified by:
      getAsyncContext in interface org.jboss.resteasy.spi.HttpRequest
    • isInitial

      public boolean isInitial()
      Specified by:
      isInitial in interface org.jboss.resteasy.spi.HttpRequest
    • forward

      public void forward(String path)
      Specified by:
      forward in interface org.jboss.resteasy.spi.HttpRequest
    • wasForwarded

      public boolean wasForwarded()
      Specified by:
      wasForwarded in interface org.jboss.resteasy.spi.HttpRequest