public class URIFragments extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FULL_URI |
static int |
HOST |
static int |
PATH |
static int |
PORT |
static int |
PROTOCOL |
static int |
QUERY |
static int |
REF |
static int |
USER_INFO |
Constructor and Description |
---|
URIFragments() |
URIFragments(URI uri) |
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
String |
getStringFragment(int index) |
void |
setFragments(URI uri)
Break down the given URI into fragments and reinitialize the current
fragments set
|
void |
setPort(int port) |
void |
setStringFragment(int index,
String value) |
URI |
toURI()
Construct a valid URI by combining the current fragment values
|
String |
toURIString()
Construct a valid URI string by combining the current fragment values
|
public static final int FULL_URI
public static final int PORT
public static final int PROTOCOL
public static final int USER_INFO
public static final int HOST
public static final int PATH
public static final int QUERY
public static final int REF
public URIFragments()
public URIFragments(URI uri)
public void setFragments(URI uri)
uri
- the URI to be assigned to the fragmentspublic void setPort(int port)
public int getPort()
public void setStringFragment(int index, String value)
public String getStringFragment(int index)
public URI toURI() throws URISyntaxException
URISyntaxException
- if the fragments form a malformed URIpublic String toURIString() throws URISyntaxException
URISyntaxException
- if the fragments form a malformed URICopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.