2013-03-25 73 views

回答

3

您可以使用實用工具類org.restlet.ext.servlet.ServletUtils去HttpServletRequest的:

org.restlet.Request restletRequest = getRequest(); 
HttpServletRequest servletRequest = ServletUtils.getRequest(restletRequest); 

和類似的迴應:

org.restlet.Request restletResponse = getResponse(); 
HttpServletResponse servletResponse = ServletUtils.getResponse(restletResponse); 
+0

我創建的對象成功,但現在當我嘗試下載文件時,它會拋出java.lang.IllegalStateException:NO CONTENT異常。 – Sweta 2013-03-26 07:03:31

相關問題