Thursday, February 5, 2009

HttpServletRequest

See my other post Java
sdk_1.3 api javax.servlet.http.HttpServletRequest

Для конфы
<servlet-mapping>
<servlet-name>SOAPServlet</servlet-name>
<url-pattern>/soap/services/*</url-pattern>
</servlet-mapping>
в приложении
wsrp.war
и запроса
http://localhost:8080/wsrp/soap/services/WSRPService2/WSRP_v2_Markup_Service?wsdl
имеем:

>>> hreq.getContextPath() = /wsrp
>>> hreq.getPathInfo() = /WSRPService2/WSRP_v2_Markup_Service
>>> hreq.getQueryString() = wsdl
>>> hreq.getRequestURI() = /wsrp/soap/services/WSRPService2/WSRP_v2_Markup_Service
>>> hreq.getServletPath() = /soap/services

No comments: