Class RestletHttpRequest

  • All Implemented Interfaces:
    org.jboss.resteasy.spi.HttpRequest

    @Deprecated
    public class RestletHttpRequest
    extends org.jboss.resteasy.plugins.server.BaseHttpRequest
    Deprecated.
    Will be removed in next minor release.
    RESTEasy HTTP request wrapper for Restlet requests.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.jboss.resteasy.core.SynchronousDispatcher dispatcher
      Deprecated.
       
      private org.jboss.resteasy.specimpl.ResteasyHttpHeaders httpHeaders
      Deprecated.
       
      private org.jboss.resteasy.spi.HttpResponse httpResponse
      Deprecated.
       
      private Request request
      Deprecated.
      The wrapped Restlet request.
      private org.jboss.resteasy.spi.ResteasyUriInfo uriInfo
      Deprecated.
       
      • Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest

        decodedFormParameters, formParameters, uri
    • Constructor Summary

      Constructors 
      Constructor Description
      RestletHttpRequest​(org.jboss.resteasy.core.SynchronousDispatcher dispatcher, Request request, Response response)
      Deprecated.
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected org.jboss.resteasy.specimpl.ResteasyHttpHeaders createHttpHeaders()
      Deprecated.
      Creates a RESTEasy HTTP headers object.
      static org.jboss.resteasy.spi.ResteasyUriInfo createUriInfo​(Reference reference)
      Deprecated.
      Creates a RESTEasy URI info object.
      void forward​(java.lang.String path)
      Deprecated.
       
      org.jboss.resteasy.spi.ResteasyAsynchronousContext getAsyncContext()
      Deprecated.
       
      java.lang.Object getAttribute​(java.lang.String name)
      Deprecated.
       
      java.util.Enumeration<java.lang.String> getAttributeNames()
      Deprecated.
       
      javax.ws.rs.core.HttpHeaders getHttpHeaders()
      Deprecated.
       
      java.lang.String getHttpMethod()
      Deprecated.
       
      java.io.InputStream getInputStream()
      Deprecated.
       
      javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getMutableHeaders()
      Deprecated.
       
      Request getRequest()
      Deprecated.
      Returns the wrapped Restlet request.
      org.jboss.resteasy.spi.ResteasyUriInfo getUri()
      Deprecated.
       
      void removeAttribute​(java.lang.String name)
      Deprecated.
       
      void setAttribute​(java.lang.String name, java.lang.Object value)
      Deprecated.
       
      void setHttpMethod​(java.lang.String name)
      Deprecated.
       
      void setInputStream​(java.io.InputStream stream)
      Deprecated.
       
      void setRequestUri​(java.net.URI uri)
      Deprecated.
       
      void setRequestUri​(java.net.URI baseUri, java.net.URI requestUri)
      Deprecated.
       
      boolean wasForwarded()
      Deprecated.
       
      • Methods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest

        getDecodedFormParameters, getFormParameters, isInitial
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • httpHeaders

        private final org.jboss.resteasy.specimpl.ResteasyHttpHeaders httpHeaders
        Deprecated.
      • request

        private final Request request
        Deprecated.
        The wrapped Restlet request.
      • uriInfo

        private final org.jboss.resteasy.spi.ResteasyUriInfo uriInfo
        Deprecated.
      • dispatcher

        private final org.jboss.resteasy.core.SynchronousDispatcher dispatcher
        Deprecated.
      • httpResponse

        private final org.jboss.resteasy.spi.HttpResponse httpResponse
        Deprecated.
    • Constructor Detail

      • RestletHttpRequest

        public RestletHttpRequest​(org.jboss.resteasy.core.SynchronousDispatcher dispatcher,
                                  Request request,
                                  Response response)
                           throws java.net.URISyntaxException
        Deprecated.
        Constructor.
        Parameters:
        request - The wrapped Restlet request.
        response - The wrapped Restlet response.
        Throws:
        java.net.URISyntaxException
    • Method Detail

      • createHttpHeaders

        protected org.jboss.resteasy.specimpl.ResteasyHttpHeaders createHttpHeaders()
        Deprecated.
        Creates a RESTEasy HTTP headers object.
        Returns:
        A RESTEasy HTTP headers object.
      • createUriInfo

        public static org.jboss.resteasy.spi.ResteasyUriInfo createUriInfo​(Reference reference)
        Deprecated.
        Creates a RESTEasy URI info object.
        Returns:
        A RESTEasy URI info object.
      • forward

        public void forward​(java.lang.String path)
        Deprecated.
      • getAsyncContext

        public org.jboss.resteasy.spi.ResteasyAsynchronousContext getAsyncContext()
        Deprecated.
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Deprecated.
      • getAttributeNames

        public java.util.Enumeration<java.lang.String> getAttributeNames()
        Deprecated.
      • getHttpHeaders

        public javax.ws.rs.core.HttpHeaders getHttpHeaders()
        Deprecated.
      • getHttpMethod

        public java.lang.String getHttpMethod()
        Deprecated.
      • getInputStream

        public java.io.InputStream getInputStream()
        Deprecated.
      • getMutableHeaders

        public javax.ws.rs.core.MultivaluedMap<java.lang.String,​java.lang.String> getMutableHeaders()
        Deprecated.
      • getRequest

        public Request getRequest()
        Deprecated.
        Returns the wrapped Restlet request.
        Returns:
        The wrapped Restlet request.
      • getUri

        public org.jboss.resteasy.spi.ResteasyUriInfo getUri()
        Deprecated.
        Specified by:
        getUri in interface org.jboss.resteasy.spi.HttpRequest
        Overrides:
        getUri in class org.jboss.resteasy.plugins.server.BaseHttpRequest
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
        Deprecated.
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Deprecated.
      • setHttpMethod

        public void setHttpMethod​(java.lang.String name)
        Deprecated.
      • setInputStream

        public void setInputStream​(java.io.InputStream stream)
        Deprecated.
      • setRequestUri

        public void setRequestUri​(java.net.URI uri)
                           throws java.lang.IllegalStateException
        Deprecated.
        Specified by:
        setRequestUri in interface org.jboss.resteasy.spi.HttpRequest
        Overrides:
        setRequestUri in class org.jboss.resteasy.plugins.server.BaseHttpRequest
        Throws:
        java.lang.IllegalStateException
      • setRequestUri

        public void setRequestUri​(java.net.URI baseUri,
                                  java.net.URI requestUri)
                           throws java.lang.IllegalStateException
        Deprecated.
        Specified by:
        setRequestUri in interface org.jboss.resteasy.spi.HttpRequest
        Overrides:
        setRequestUri in class org.jboss.resteasy.plugins.server.BaseHttpRequest
        Throws:
        java.lang.IllegalStateException
      • wasForwarded

        public boolean wasForwarded()
        Deprecated.