请问从JAVA读取URL Params?

时间:2015-03-19 18:10:56

标签: java servlets

我正在尝试使用Java读取浏览器URL,即时使用

request.getRequestURI()

我的网址是,

https://1.2.1.1:8443/om/em/Ement/nodeSummary/PSS32-94.11

我只能读到PSS32-94 有关如何阅读完整PSS32-94.11的任何指示都是必要的。

JAVA代码:

@RequestMapping(value = "/nodeSummary/{nodeLabel}", produces = "application/json", method = RequestMethod.GET)
public @ResponseBody NodeAlarmSummary getNodeSummary(HttpServletRequest request, @PathVariable String nodeLabel) {

        HttpSession session = request.getSession();
        String requestId = multipleRepliesFactoryImpl.createUniqueRequestId();
        ExecInfo exInfo = multipleRepliesFactoryImpl.createExecInfo(RequestMethod.GET, request.getRequestURI(), "");
        String[] targetObjects = { "Get Node Summary of " + nodeLabel };
        String reqId = multipleRepliesFactoryImpl.createStartOpMessage(session.getId(), requestId, "GET", targetObjects, exInfo);

        NodeAlarmSummary varGetNodeSummary = eqmSummary.getNodeSummary(nodeLabel, neCache);

        multipleRepliesFactoryImpl.createStopOpMessage(session.getId(), requestId, RequestStatus.Success);
        return varGetNodeSummary;
    }

0 个答案:

没有答案