public void buildPathPart(Appendable buffer,String url) throws WebAppConfigurationException, IOException {
  if (servletPath == null) {
    throw new IllegalStateException("Servlet path is unknown");
  }
  buffer.append(servletPath);
  if (!servletPath.endsWith("/") && !url.startsWith("/")) {
    buffer.append("/");
  }
  buffer.append(url);
}

public void buildPathPart ( Appendable buffer , String url ) throws WebAppConfigurationException , IOException { if ( servletPath == null ) { throw new IllegalStateException ( "Servlet path is unknown" ) ; } buffer . append ( servletPath ) ; if ( ! servletPath . endsWith ( "/" ) && ! url . startsWith ( "/" ) ) { buffer . append ( "/" ) ; } buffer . append ( url ) ; }
builds a partial url - including the servlet path and resource , but not the scheme or host .
