org.eclipse.jetty.http
类 HttpURI

java.lang.Object
  继承者 org.eclipse.jetty.http.HttpURI
直接已知子类:
EncodedHttpURI

public class HttpURI
extends Object

Http URI. Parse a HTTP URI from a string or byte array. Given a URI http://user@host:port/path/info;param?query#fragment this class will split it into the following undecoded optional elements:


构造方法摘要
HttpURI()
           
HttpURI(boolean parsePartialAuth)
           
HttpURI(byte[] raw, int offset, int length)
           
HttpURI(String raw)
           
HttpURI(URI uri)
           
 
方法摘要
 void clear()
           
 void decodeQueryTo(MultiMap parameters)
           
 void decodeQueryTo(MultiMap parameters, String encoding)
           
 String getAuthority()
           
 String getCompletePath()
           
 String getDecodedPath()
           
 String getDecodedPath(String encoding)
           
 String getFragment()
           
 String getHost()
           
 String getParam()
           
 String getPath()
           
 String getPathAndParam()
           
 int getPort()
           
 String getQuery()
           
 String getQuery(String encoding)
           
 String getScheme()
           
 boolean hasQuery()
           
 void parse(byte[] raw, int offset, int length)
           
 void parse(String raw)
           
 void parseConnect(byte[] raw, int offset, int length)
           
 String toString()
           
 void writeTo(Utf8StringBuilder buf)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

HttpURI

public HttpURI()

HttpURI

public HttpURI(boolean parsePartialAuth)
参数:
parsePartialAuth - If True, parse auth without prior scheme, else treat all URIs starting with / as paths

HttpURI

public HttpURI(String raw)

HttpURI

public HttpURI(byte[] raw,
               int offset,
               int length)

HttpURI

public HttpURI(URI uri)
方法详细信息

parse

public void parse(String raw)

parse

public void parse(byte[] raw,
                  int offset,
                  int length)

parseConnect

public void parseConnect(byte[] raw,
                         int offset,
                         int length)

getScheme

public String getScheme()

getAuthority

public String getAuthority()

getHost

public String getHost()

getPort

public int getPort()

getPath

public String getPath()

getDecodedPath

public String getDecodedPath()

getDecodedPath

public String getDecodedPath(String encoding)

getPathAndParam

public String getPathAndParam()

getCompletePath

public String getCompletePath()

getParam

public String getParam()

getQuery

public String getQuery()

getQuery

public String getQuery(String encoding)

hasQuery

public boolean hasQuery()

getFragment

public String getFragment()

decodeQueryTo

public void decodeQueryTo(MultiMap parameters)

decodeQueryTo

public void decodeQueryTo(MultiMap parameters,
                          String encoding)
                   throws UnsupportedEncodingException
抛出:
UnsupportedEncodingException

clear

public void clear()

toString

public String toString()
覆盖:
Object 中的 toString

writeTo

public void writeTo(Utf8StringBuilder buf)


Copyright © 2013. All Rights Reserved.