@@ -0,0 +1,2309 @@
+/*%0A * Copyright 2015 Hiroki Uchida%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22); you may not use this file except%0A * in compliance with the License. You may obtain a copy of the License at%0A * %0A * http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software distributed under the License%0A * is distributed on an %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express%0A * or implied. See the License for the specific language governing permissions and limitations under%0A * the License.%0A */%0A%0Apackage dmm4j.http;%0A%0Aimport dmm4j.DmmException;%0A%0A%0Apublic final class HttpResponseEvent %7B%0A%0A  private final HttpRequest request;%0A%0A  private final HttpResponse response;%0A%0A  private final DmmException dmmException;%0A%0A  HttpResponseEvent(HttpRequest request, HttpResponse response, DmmException de) %7B%0A    this.request = request;%0A    this.response = response;%0A    this.dmmException = de;%0A  %7D%0A%0A  /**%0A   * returns the request associated with the event%0A   *%0A   * @return the request associated with the event%0A   */%0A  public HttpRequest getRequest() %7B%0A    return request;%0A  %7D%0A%0A  /**%0A   * returns the response associated with the event%0A   *%0A   * @return the response associated with the event%0A   */%0A  public HttpResponse getResponse() %7B%0A    return response;%0A  %7D%0A%0A  /**%0A   * returns the DmmException associated with the event%0A   *%0A   * @return the DmmException associated with the event%0A   */%0A  public DmmException getDmmException() %7B%0A    return dmmException;%0A  %7D%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (this == o)%0A      return true;%0A    if (o == null %7C%7C getClass() != o.getClass())%0A      return false;%0A%0A    HttpResponseEvent that = (HttpResponseEvent) o;%0A%0A    if (request != null ? !request.equals(that.request) : that.request != null)%0A      return false;%0A    if (response != null ? !response.equals(that.response) : that.response != null)%0A      return false;%0A%0A    return true;%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    int result = request != null ? request.hashCode() : 0;%0A    result = 31 * result + (response != null ? response.hashCode() : 0);%0A    return result;%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return %22HttpResponseEvent%7B%22 + %22request=%22 + request + %22, response=%22 + response + '%7D';%0A  %7D%0A%7D%0A

Add HttpResponseEvent