public class URIFragments
extends java.lang.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(java.net.URI uri) |
Modifier and Type | Method and Description |
---|---|
int |
getPort() |
java.lang.String |
getStringFragment(int index) |
void |
setFragments(java.net.URI uri)
Break down the given URI into fragments and reinitialize the current
fragments set
|
void |
setPort(int port) |
void |
setStringFragment(int index,
java.lang.String value) |
java.net.URI |
toURI()
Construct a valid URI by combining the current fragment values
|
java.lang.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(java.net.URI uri)
public void setFragments(java.net.URI uri)
uri
- the URI to be assigned to the fragmentspublic void setPort(int port)
public int getPort()
public void setStringFragment(int index, java.lang.String value)
public java.lang.String getStringFragment(int index)
public java.net.URI toURI() throws java.net.URISyntaxException
java.net.URISyntaxException
- if the fragments form a malformed URIpublic java.lang.String toURIString() throws java.net.URISyntaxException
java.net.URISyntaxException
- if the fragments form a malformed URICopyright © 2005-2021 Apache Software Foundation. All Rights Reserved.