[JAVA] I want to see the contents of Request without saying four or five

System.out.println("Protocol: " + request.getProtocol()); System.out.println("Scheme: " + request.getScheme()); System.out.println("Server Name: " + request.getServerName() ); System.out.println("Server Port: " + request.getServerPort()); System.out.println("Protocol: " + request.getProtocol()); System.out.println("Remote Addr: " + request.getRemoteAddr()); System.out.println("Remote Host: " + request.getRemoteHost()); System.out.println("Character Encoding: " + request.getCharacterEncoding()); System.out.println("Content Length: " + request.getContentLength()); System.out.println("Content Type: "+ request.getContentType()); System.out.println("Auth Type: " + request.getAuthType()); System.out.println("HTTP Method: " + request.getMethod()); System.out.println("Path Info: " + request.getPathInfo()); System.out.println("Path Trans: " + request.getPathTranslated()); System.out.println("Query String: " + request.getQueryString()); System.out.println("Remote User: " + request.getRemoteUser()); System.out.println("Session Id: " + request.getRequestedSessionId()); System.out.println("Request URI: " + request.getRequestURI()); System.out.println("Servlet Path: " + request.getServletPath()); System.out.println("Accept: " + request.getHeader("Accept")); System.out.println("Host: " + request.getHeader("Host")); System.out.println("Referer : " + request.getHeader("Referer")); System.out.println("Accept-Language : " + request.getHeader("Accept-Language")); System.out.println("Accept-Encoding : " + request.getHeader("Accept-Encoding")); System.out.println("User-Agent : " + request.getHeader("User-Agent")); System.out.println("Connection : " + request.getHeader("Connection")); System.out.println("Cookie : " + request.getHeader("Cookie"));

Recommended Posts

I want to see the contents of Request without saying four or five
I want to var_dump the contents of the intent
I want to be aware of the contents of variables!
I want to understand the flow of Spring processing request parameters
I want to output the day of the week
I want to display the name of the poster of the comment
I want to return the scroll position of UITableView!
I want to expand the clickable part of the link_to method
I want to narrow down the display of docker ps
[Ruby] I want to reverse the order of the hash table
I want to temporarily disable the swipe gesture of UIPageViewController
I want to get a list of the contents of a zip file and its uncompressed size
I want to recreate the contents of assets from scratch in the environment built with capistrano
The story of Collectors.groupingBy that I want to keep for posterity
I want to limit the input by narrowing the range of numbers
I want to control the default error message of Spring Boot
I want to change the value of Attribute in Selenium of Ruby
[Spring Boot] I investigated how to implement post-processing of the received request.
I want to display the number of orders for today using datetime.
I want to pass the argument of Annotation and the argument of the calling method to aspect
I want to get the field name of the [Java] field. (Old tale tone)
I want to introduce the committee with Rails without getting too dirty
I want you to use Enum # name () for the Key of SharedPreference
After all I wanted to preview the contents of mysql with Docker ...
[RxSwift] I want to deepen my understanding by following the definition of Observable
I want to get the value of Cell transparently regardless of CellType (Apache POI)
I want to separate the handling of call results according to the API caller (call trigger)
I managed to get a blank when I brought the contents of Beans to the textarea
I want to recursively get the superclass and interface of a certain class
Customize how to divide the contents of Recyclerview
I want to truncate after the decimal point
I want to get the value in Ruby
Even if I want to convert the contents of a data object to JSON in Java, there is a circular reference ...
[Ruby] I want to make a program that displays today's day of the week!
Rails The concept of view componentization of Rails that I want to convey to those who want to quit
I tried to check the operation of http request (Put) with Talented API Tester
Understand while reading the article! Summary of contents that Elasticsearch beginners want to suppress
[Active Admin] I want to specify the scope of the collection to be displayed in select_box
[Docker] How to see the contents of Volumes. Start a container with root privileges.
[Rails] I want to display the link destination of link_to in a separate tab
I want to reduce the number of unnecessary queries. From considering counter_cache to introducing counter_culture.
When the hover of Eclipse is hard to see
I want to call a method of another class
[Java] I want to calculate the difference from the date
I was addicted to the record of the associated model
I tried to summarize the state transition of docker
I want to judge the range using the monthly degree
I tried to reduce the capacity of Spring Boot
I want to dark mode with the SWT app
I want to call the main method using reflection
[Rails] How to get the contents of strong parameters
Java: Use Stream to sort the contents of the collection
[Rough commentary] I want to marry the pluck method
I want to simplify the log output on Android
I want to add a delete function to the comment function
I want to fetch another association of the parent model from the intermediate table with has_many
I want to find out which version of java the jar file I have is available
[Ruby on Rails] I want to get the URL of the image saved in Active Storage
I want to control the display of the upper management navigation bar (Control menu) in Liferay 7 / DXP
I want to use Java Applet easily on the command line without using an IDE
I want to change the color of the upper control navigation bar (Control menu) in Liferay 7 / DXP