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

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

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.methods OptionsMethod 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.OptionsResponseHandler.java

/**
 * Constructor checking if we should handle the Allow header
 * ourself or respond with the backing servers header.
 * /*from ww  w.  j a  va  2 s  . c  o m*/
 * @param method The method for this response
 */
public OptionsResponseHandler(OptionsMethod method) {
    super(method);
    useOwnAllow = !method.hasBeenUsed();
}