Exemple #1
0
  private String buildURI(boolean full) {
    boolean absolute = full | baseURL != null;

    StringBuilder builder = new StringBuilder(BUFFER_SIZE);

    if (baseURL != null) builder.append(baseURL);

    builder.append(contextPath);

    String invocationURI = invocation.buildURI();

    if (invocationURI.length() > 0 || contextPath.length() == 0) {
      builder.append("/");

      builder.append(invocationURI);
    }

    if (InternalUtils.isNonBlank(anchor)) {
      builder.append("#");
      builder.append(anchor);
    }

    String fullURI = builder.toString();

    return absolute ? fullURI : optimizer.optimizePath(fullURI);
  }
Exemple #2
0
 public List<String> getParameterNames() {
   return invocation.getParameterNames();
 }
Exemple #3
0
 public String getParameterValue(String name) {
   return invocation.getParameterValue(name);
 }
Exemple #4
0
 public void addParameter(String parameterName, String value) {
   invocation.addParameter(parameterName, value);
 }