Code example for URI

Methods: toASCIIString

0
    public RequestLine getRequestLine() {
        String method = getMethod();
        ProtocolVersion ver = getProtocolVersion();
        String uritext = null;
        if (uri != null) {
            uritext = uri.toASCIIString();
        } 
        if (uritext == null || uritext.length() == 0) {
            uritext = "/";
        } 
        return new BasicRequestLine(method, uritext, ver);
    } 
 
    public void abort() throws UnsupportedOperationException { 
        throw new UnsupportedOperationException();
    } 
 
    public boolean isAborted() { 
        return false; 
    }