Ejemplo n.º 1
0
  @JsonIgnore
  public String getProxyUrl() {
    if (browserProxyUrl != null) {
      return browserProxyUrl;
    }

    return proxyBaseUrl + originalRequest.getUrl();
  }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((body == null) ? 0 : body.hashCode());
   result = prime * result + ((bodyFileName == null) ? 0 : bodyFileName.hashCode());
   result = prime * result + ((fault == null) ? 0 : fault.hashCode());
   result =
       prime * result + ((fixedDelayMilliseconds == null) ? 0 : fixedDelayMilliseconds.hashCode());
   result = prime * result + ((headers == null) ? 0 : headers.hashCode());
   result = prime * result + ((originalRequest == null) ? 0 : originalRequest.hashCode());
   result = prime * result + ((proxyBaseUrl == null) ? 0 : proxyBaseUrl.hashCode());
   result = prime * result + status;
   result = prime * result + (wasConfigured ? 1231 : 1237);
   return result;
 }
Ejemplo n.º 3
0
 public static ResponseDefinition browserProxy(Request originalRequest) {
   final ResponseDefinition response = new ResponseDefinition();
   response.browserProxyUrl = originalRequest.getAbsoluteUrl();
   return response;
 }