org.apache.ivy.util.url

Class AbstractURLHandler

public abstract class AbstractURLHandler extends Object implements URLHandler

Method Summary
longgetContentLength(URL url)
longgetContentLength(URL url, int timeout)
longgetLastModified(URL url)
longgetLastModified(URL url, int timeout)
intgetRequestMethod()
booleanisReachable(URL url)
booleanisReachable(URL url, int timeout)
protected StringnormalizeToString(URL url)
protected URLnormalizeToURL(URL url)
voidsetRequestMethod(int requestMethod)
protected voidvalidatePutStatusCode(URL dest, int statusCode, String statusMessage)

Method Detail

getContentLength

public long getContentLength(URL url)

getContentLength

public long getContentLength(URL url, int timeout)

getLastModified

public long getLastModified(URL url)

getLastModified

public long getLastModified(URL url, int timeout)

getRequestMethod

public int getRequestMethod()

isReachable

public boolean isReachable(URL url)

isReachable

public boolean isReachable(URL url, int timeout)

normalizeToString

protected String normalizeToString(URL url)

normalizeToURL

protected URL normalizeToURL(URL url)

setRequestMethod

public void setRequestMethod(int requestMethod)

validatePutStatusCode

protected void validatePutStatusCode(URL dest, int statusCode, String statusMessage)