Example usage for org.apache.commons.httpclient.methods TraceMethod hasBeenUsed

List of usage examples for org.apache.commons.httpclient.methods TraceMethod hasBeenUsed

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.methods TraceMethod hasBeenUsed.

Prototype

@Override
public boolean hasBeenUsed() 

Source Link

Document

Returns <tt>true</tt> if the HTTP method has been already #execute executed , but not #recycle recycled .

Usage

From source file:net.sf.j2ep.responsehandlers.TraceResponseHandler.java

/**
 * Basic constructor setting the method, and also checks if
 * the request is targeted to the proxy or the underlying server.
 * @param method The http method//w  w  w .  j  a  v  a  2s .  com
 */
public TraceResponseHandler(TraceMethod method) {
    super(method);
    proxyTargeted = !method.hasBeenUsed();
}