Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions about HttpServletResponse-API  RSS feed

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello community,

I have a question about the HttpServletResponse-API.

I'm trying to find out where is noticed the instance-variable of HttpServletResponse.

For Example: final PrintWriter out = response.getWriter();´
According to the code above. the instance-variable of HttpServletResponse is "respond".
But where can I find the instance-variable?

At the oracle's api-page, there is nothing noticed, except the return value and methods of HttpServletResponse-class/interface.


I hope you can help me. Thanks a lot.

greetz
 
Ralf Coby
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for Dubbleposting:

Here ist the oracle's api-website: https://docs.oracle.com/javaee/6/api/javax/servlet/ServletResponse.html
 
Saloon Keeper
Posts: 4418
108
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That code might be part of an HttpServlet's doGet method - in which case the request and response are passed into the method as parameters: javax.servlet.http.HttpServlet
 
Ralf Coby
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi and thank's for your help!

At oracle's api-website, there isn't noticed the instance-variable

My english isnt the best, so I try to explain in code:
For example: --> so, the variable "d" is the instance-variable of the Dog's object.
Example 2:   --> the instance-variable of HttpServletResponse is "response", because if you write an abstract-method, you can wirte this:

final PrintWriter out = HttpServletRequest.getWriter(); 



I dont know where I can find the instance-variables of the API.
And according to the website, which you have sent, there isn't noticed the instance-variable, too.


Greetz
 
Ralf Coby
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit:
 
Ralf Coby
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I AM SO SORRY!!!

I understand!!!

Example:

There is the instance-variable: void doPost(HttpServletRequest request, HttpServletResponse response) !!!

Thank you a lot for help!

Greeeeeeeeetz
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!