Package com.emc.documentum.rest.http
Class BaseUriInfo
java.lang.Object
com.emc.documentum.rest.http.BaseUriInfo
- Direct Known Subclasses:
UriInfo
This class provides the basic information for an URI.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault constructor for the base URI information.BaseUriInfo
(BaseUriInfo uri) Constructor with the base URI info.BaseUriInfo
(com.emc.documentum.rest.http.ForwardedUri uri) Constructor with the URI parameter. -
Method Summary
Modifier and TypeMethodDescriptionReturn the base URI; for example, "http://local"Return the URI format extensionReturn the full URIReturn the request URIvoid
setBaseUri
(String baseUri) Set the base URIvoid
setFormatExtension
(String formatExtension) Set the URI format extension; for example, '.json', '.xml', etc.void
setFullUri
(String fullUri) Set the full URI with root, path and query; for example, 'http://localhost:8080/rest/resoruces?q=doc'void
setRequestUri
(String requestUri) Set the request URI with both root and path; for example, 'http://localhost:8080/rest/resoruces?q=doc'toString()
-
Field Details
-
BASE_URI_INFO
- See Also:
-
-
Constructor Details
-
BaseUriInfo
public BaseUriInfo()Default constructor for the base URI information. -
BaseUriInfo
public BaseUriInfo(com.emc.documentum.rest.http.ForwardedUri uri) Constructor with the URI parameter.- Parameters:
uri
- the forwarded URI
-
BaseUriInfo
Constructor with the base URI info.- Parameters:
uri
- the base URI info
-
-
Method Details
-
getFormatExtension
Return the URI format extension- Returns:
- the URI format extension
-
setFormatExtension
Set the URI format extension; for example, '.json', '.xml', etc.- Parameters:
formatExtension
- the URI format extension
-
getBaseUri
Return the base URI; for example, "http://local"- Returns:
- the base URI
-
setBaseUri
Set the base URI- Parameters:
baseUri
- the base URI
-
getFullUri
Return the full URI- Returns:
- the full URI
-
setFullUri
Set the full URI with root, path and query; for example, 'http://localhost:8080/rest/resoruces?q=doc'- Parameters:
fullUri
- the full URI
-
getRequestUri
Return the request URI- Returns:
- the request URI
-
setRequestUri
Set the request URI with both root and path; for example, 'http://localhost:8080/rest/resoruces?q=doc'- Parameters:
requestUri
- the request URI
-
toString
-