简体   繁体   English

在PlayFramework中使用Java访问响应

[英]Accessing response using java in playframework

How to access Response object in Java? 如何在Java中访问Response对象?

I have gone through the documentation: 我已经阅读了文档:

https://www.playframework.com/documentation/2.4.x/JavaResponse https://www.playframework.com/documentation/2.4.x/JavaResponse

But the problem with the above documentation is that I don't know what to import. 但是上述文档的问题是我不知道要导入什么。 What class I have to import to access and manipulate Response s? 我必须导入哪个类才能访问和操纵Response

You have to import the following class: 您必须导入以下类:

import play.mvc.Result;

This is usually already imported when you create a new project using Activator . 使用Activator创建新项目时,通常已经将其导入。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM