@Override /* * temporarily splitting off and saving suffix from pathInfo until this is generally handled with HSTTWO-1189 */ protected String getJaxrsPathInfo(HstRequestContext requestContext, HttpServletRequest request) throws ContainerException { return requestContext.getPathSuffix(); }
private static String createDestinationPath(final HttpServletRequest servletRequest, final HstRequestContext requestContext) { final StringBuilder destinationPath = new StringBuilder(); // we start with the request uri including the context path (normally this is /site/...) destinationPath.append(servletRequest.getRequestURI()); if (requestContext.getPathSuffix() != null) { final HstManager hstManager = HstServices.getComponentManager().getComponent(HstManager.class.getName()); final String subPathDelimiter = hstManager.getPathSuffixDelimiter(); destinationPath.append(subPathDelimiter).append(requestContext.getPathSuffix()); } final String queryString = servletRequest.getQueryString(); if (queryString != null) { destinationPath.append("?").append(queryString); } return destinationPath.toString(); }
if (requestContext.getPathSuffix() != null) { jaxrsEndpointRequestPath.append(requestContext.getPathSuffix());