Estou em dúvida nestas duas questões, alguém pode me ajudar:
- Given a servlet mapped to /control, place the correct URI segment returned as a String on the corresponding HttpServletRequest method call for the URI: /myapp/control/processorder
HttpServletRequest URI Segment
Method
getServletPath /myapp
getPathInfo /control
getContext /processorder
-
Given a request from mybox.example.com, with an IP address of 10.0.1.11 on port 33086, place the appropriate ServletRequest methods onto their corresponding return values.
Proxy/Client Settings ServletRequest Methods
mybox.example.com getServerPort
10.0.1.11 getServerAddr
33086 getServerName
getRemotePort
getRemoteAddr
getRemoteHost