Zaloguj się
Projekty Kategorie Archiwum
28 lipca

Krótka ściągawka pokazuje, co dokładnie jest zwracane przez daną metodę. A tutaj jest skrypt, który automagicznie utworzył poniższe tabelki ;)

new java.net.URI("http://jamlasica.jogger.pl")

Method Result
getScheme() http
getUserInfo() null
getHost() jamlasica.jogger.pl
getPort() -1
getPath() "" (empty String)
getQuery() null
getFragment() null
toString() http://jamlasica.jogger.pl
toASCIIString() http://jamlasica.jogger.pl
toURL() http://jamlasica.jogger.pl
getAuthority() jamlasica.jogger.pl
getRawAuthority() jamlasica.jogger.pl
getRawUserInfo() null
getRawPath() "" (empty String)
getRawQuery() null
getRawFragment() null
getSchemeSpecificPart() //jamlasica.jogger.pl
getRawSchemeSpecificPart() //jamlasica.jogger.pl

new java.net.URI("http://www.google.pl/search?q=mały%20żółw")

Method Result
getScheme() http
getUserInfo() null
getHost() www.google.pl
getPort() -1
getPath() /search
getQuery() q=mały żółw
getFragment() null
toString() http://www.google.pl/search?q=mały%20żółw
toASCIIString() http://www.google.pl/search?q=ma%C5%82y%20%C5%BC%C3%B3%C5%82w
toURL() http://www.google.pl/search?q=mały%20żółw
getAuthority() www.google.pl
getRawAuthority() www.google.pl
getRawUserInfo() null
getRawPath() /search
getRawQuery() q=mały%20żółw
getRawFragment() null
getSchemeSpecificPart() //www.google.pl/search?q=mały żółw
getRawSchemeSpecificPart() //www.google.pl/search?q=mały%20żółw

new java.net.URI("mailto:kowalski@example.com.pl?subject=Tytuł&body=Hi")

Method Result
getScheme() mailto
getUserInfo() null
getHost() null
getPort() -1
getPath() null
getQuery() null
getFragment() null
toString() mailto:kowalski@example.com.pl?subject=Tytuł&body=Hi
toASCIIString() mailto:kowalski@example.com.pl?subject=Tytu%C5%82&body=Hi
toURL() mailto:kowalski@example.com.pl?subject=Tytuł&body=Hi
getAuthority() null
getRawAuthority() null
getRawUserInfo() null
getRawPath() null
getRawQuery() null
getRawFragment() null
getSchemeSpecificPart() kowalski@example.com.pl?subject=Tytuł&body=Hi
getRawSchemeSpecificPart() kowalski@example.com.pl?subject=Tytuł&body=Hi

new java.net.URI("http://user%20foo:password@example.com:666/this%20is%20a%20path?query%20test=żółw#documentFragment")

Method Result
getScheme() http
getUserInfo() user foo:password
getHost() example.com
getPort() 666
getPath() /this is a path
getQuery() query test=żółw
getFragment() documentFragment
toString() http://user%20foo:password@example.com:666/this%20is%20a%20path?query%20test=żółw#documentFragment
toASCIIString() http://user%20foo:password@example.com:666/this%20is%20a%20path?query%20test=%C5%BC%C3%B3%C5%82w#documentFragment
toURL() http://user%20foo:password@example.com:666/this%20is%20a%20path?query%20test=żółw#documentFragment
getAuthority() user foo:password@example.com:666
getRawAuthority() user%20foo:password@example.com:666
getRawUserInfo() user%20foo:password
getRawPath() /this%20is%20a%20path
getRawQuery() query%20test=żółw
getRawFragment() documentFragment
getSchemeSpecificPart() //user foo:password@example.com:666/this is a path?query test=żółw
getRawSchemeSpecificPart() //user%20foo:password@example.com:666/this%20is%20a%20path?query%20test=żółw

Napisz komentarz

Dodaj komentarz

Formatowanie komentarza

Kategorie

Ewolucja Internetu 8 | Fail 40 | Gry 46 | Humor 129 | Idiotyzm 50 | Java 110 | KDE 85 | KShutDown 22 | Linux 84 | Makagiga 58 Muzeum 3 | Ogólne 819 | Polityka 76 | Programowanie 51 | Reklamy 4 | Techblog 19 | Teorie Spiskowe 12 | TV 59 | UI 9 | Użyteczność 30 | WWW 90 | Wyrwane z Kontekstu 34 | X Files 14

Archiwum

Maj 2012 | Kwiecień 2012 | Marzec 2012 | Luty 2012 | Styczeń 2012 | Grudzień 2011 | Listopad 2011 | Październik 2011 | Wrzesień 2011 | Sierpień 2011 | Lipiec 2011 | Czerwiec 2011 | Maj 2011 | Kwiecień 2011 | Styczeń 2011 | Listopad 2010 | Październik 2010 | Wrzesień 2010 | Sierpień 2010 | Lipiec 2010 | Czerwiec 2010 | Kwiecień 2010 | Marzec 2010 | Luty 2010 | Styczeń 2010 | Grudzień 2009 | Listopad 2009 | Październik 2009 | Wrzesień 2009 | Sierpień 2009 | Lipiec 2009 | Czerwiec 2009 | Maj 2009 | Kwiecień 2009 | Marzec 2009 | Styczeń 2009 | Grudzień 2008 | Listopad 2008 | Październik 2008 | Wrzesień 2008 | Sierpień 2008 | Lipiec 2008 | Czerwiec 2008 | Maj 2008 | Kwiecień 2008 | Marzec 2008 | Luty 2008 | Styczeń 2008 | Grudzień 2007 | Listopad 2007 | Październik 2007 | Wrzesień 2007 | Sierpień 2007 | Lipiec 2007 | Czerwiec 2007 | Maj 2007 | Kwiecień 2007 | Marzec 2007 | Luty 2007 | Styczeń 2007 | Grudzień 2006 | Listopad 2006 | Październik 2006 | Wrzesień 2006 | Sierpień 2006 | Lipiec 2006 | Czerwiec 2006 | Maj 2006 | Kwiecień 2006 | Marzec 2006 | Luty 2006 | Styczeń 2006 | Grudzień 2005 | Listopad 2005 | Październik 2005 | Wrzesień 2005 | Sierpień 2005 | Lipiec 2005 | Czerwiec 2005 | Maj 2005 | Kwiecień 2005 | Marzec 2005 | Luty 2005 | Styczeń 2005