"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/single/web/SimpleServlet.java" between
wildfly-21.0.0.Final-src.zip and wildfly-21.0.1.Final-src.zip

About: WildFly is an application server with a standards-compliant, fast and lightweight implementation of the Java Enterprise Edition 7 Platform specifications (formerly known as JBoss community version). Sources.

SimpleServlet.java  (wildfly-21.0.0.Final-src):SimpleServlet.java  (wildfly-21.0.1.Final-src)
skipping to change at line 70 skipping to change at line 70
public static URI createURI(URL baseURL, int requestDuration) throws URISynt axException { public static URI createURI(URL baseURL, int requestDuration) throws URISynt axException {
return createURI(baseURL.toURI(), requestDuration); return createURI(baseURL.toURI(), requestDuration);
} }
public static URI createURI(URI baseURI, int requestDuration) { public static URI createURI(URI baseURI, int requestDuration) {
return baseURI.resolve(SERVLET_NAME + '?' + REQUEST_DURATION_PARAM + '=' + requestDuration); return baseURI.resolve(SERVLET_NAME + '?' + REQUEST_DURATION_PARAM + '=' + requestDuration);
} }
@Override @Override
protected void service(HttpServletRequest request, HttpServletResponse respo
nse) throws ServletException, IOException {
this.getServletContext().log(String.format("[%s] %s?%s", request.getMeth
od(), request.getRequestURI(), request.getQueryString()));
super.service(request, response);
}
@Override
protected void doHead(HttpServletRequest request, HttpServletResponse respon se) throws IOException { protected void doHead(HttpServletRequest request, HttpServletResponse respon se) throws IOException {
HttpSession session = request.getSession(true); HttpSession session = request.getSession(true);
response.addHeader(SESSION_ID_HEADER, session.getId()); response.addHeader(SESSION_ID_HEADER, session.getId());
} }
@Override @Override
protected void doPut(HttpServletRequest request, HttpServletResponse respons e) throws ServletException, IOException { protected void doPut(HttpServletRequest request, HttpServletResponse respons e) throws ServletException, IOException {
HttpSession session = request.getSession(true); HttpSession session = request.getSession(true);
response.addHeader(SESSION_ID_HEADER, session.getId()); response.addHeader(SESSION_ID_HEADER, session.getId());
session.removeAttribute(ATTRIBUTE); session.removeAttribute(ATTRIBUTE);
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)