Class RestletHttpResponse
- java.lang.Object
-
- org.restlet.ext.jaxrs.internal.resteasy.RestletHttpResponse
-
- All Implemented Interfaces:
org.jboss.resteasy.spi.HttpResponse
@Deprecated public class RestletHttpResponse extends java.lang.Object implements org.jboss.resteasy.spi.HttpResponseDeprecated.Will be removed in next minor release.RESTEasy HTTP response wrapper for Restlet requests.
-
-
Constructor Summary
Constructors Constructor Description RestletHttpResponse(Response response)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddNewCookie(javax.ws.rs.core.NewCookie cookie)Deprecated.javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object>getOutputHeaders()Deprecated.java.io.OutputStreamgetOutputStream()Deprecated.ResponsegetResponse()Deprecated.Returns the wrapped Restlet response.intgetStatus()Deprecated.booleanisCommitted()Deprecated.voidreset()Deprecated.voidsendError(int arg0)Deprecated.voidsendError(int arg0, java.lang.String arg1)Deprecated.voidsetOutputStream(java.io.OutputStream arg0)Deprecated.voidsetStatus(int arg0)Deprecated.static javax.ws.rs.core.NewCookietoNewCookie(CookieSetting cookieSetting)Deprecated.Converts the RestletCookieSettingto a JAX-RSNewCookie.static CookieSettingtoRestletCookieSetting(javax.ws.rs.core.NewCookie newCookie)Deprecated.Converts the Restlet JAX-RS NewCookie to a CookieSettings.
-
-
-
Field Detail
-
response
private final Response response
Deprecated.
-
-
Constructor Detail
-
RestletHttpResponse
public RestletHttpResponse(Response response)
Deprecated.
-
-
Method Detail
-
toNewCookie
public static javax.ws.rs.core.NewCookie toNewCookie(CookieSetting cookieSetting) throws java.lang.IllegalArgumentException
Deprecated.Converts the RestletCookieSettingto a JAX-RSNewCookie.- Parameters:
cookieSetting- The Restlet cookie setting.- Returns:
- The JAX-RS NewCookie
- Throws:
java.lang.IllegalArgumentException
-
toRestletCookieSetting
public static CookieSetting toRestletCookieSetting(javax.ws.rs.core.NewCookie newCookie) throws java.lang.IllegalArgumentException
Deprecated.Converts the Restlet JAX-RS NewCookie to a CookieSettings.- Parameters:
newCookie-- Returns:
- the converted CookieSetting
- Throws:
java.lang.IllegalArgumentException
-
addNewCookie
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
Deprecated.- Specified by:
addNewCookiein interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getOutputHeaders()
Deprecated.- Specified by:
getOutputHeadersin interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOExceptionDeprecated.- Specified by:
getOutputStreamin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
java.io.IOException
-
getResponse
public Response getResponse()
Deprecated.Returns the wrapped Restlet response.- Returns:
- The wrapped Restlet response.
-
getStatus
public int getStatus()
Deprecated.- Specified by:
getStatusin interfaceorg.jboss.resteasy.spi.HttpResponse
-
isCommitted
public boolean isCommitted()
Deprecated.- Specified by:
isCommittedin interfaceorg.jboss.resteasy.spi.HttpResponse
-
reset
public void reset()
Deprecated.- Specified by:
resetin interfaceorg.jboss.resteasy.spi.HttpResponse
-
sendError
public void sendError(int arg0) throws java.io.IOExceptionDeprecated.- Specified by:
sendErrorin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
java.io.IOException
-
sendError
public void sendError(int arg0, java.lang.String arg1) throws java.io.IOExceptionDeprecated.- Specified by:
sendErrorin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
java.io.IOException
-
setOutputStream
public void setOutputStream(java.io.OutputStream arg0)
Deprecated.- Specified by:
setOutputStreamin interfaceorg.jboss.resteasy.spi.HttpResponse
-
setStatus
public void setStatus(int arg0)
Deprecated.- Specified by:
setStatusin interfaceorg.jboss.resteasy.spi.HttpResponse
-
-