public class URLFormatter
extends java.lang.Object
Constructor and Description |
---|
URLFormatter() |
URLFormatter(java.lang.String nullFormat,
java.lang.String stringQualifier)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
decode(java.lang.String token)
Decodes string to ad to URL.
|
static java.lang.String |
encode(java.lang.String token,
boolean pathToken)
Encodes string to ad to URL.
|
java.lang.String |
format(java.lang.String url,
MboRemote mbo)
Formats URL
|
java.lang.String |
format(java.lang.String url,
MboRemote mbo,
java.lang.String relationship,
java.lang.String resourceType)
Formats URL
|
java.lang.String |
format(java.lang.String url,
MboRemote mbo,
UserInfo userInfo,
java.lang.String relationship,
java.lang.String resourceType,
JSONAnalyzer jsonAnalyzer)
Formats URL
|
java.lang.String |
replaceToken(java.lang.String fullUrl,
java.lang.String urlQ,
MboRemote mbo,
java.lang.String resourceType,
java.lang.String relationship,
boolean pathToken)
Replaces Query token based on type
|
void |
setContext(java.util.Map<java.lang.String,java.lang.Object> ctx) |
public URLFormatter()
public URLFormatter(java.lang.String nullFormat, java.lang.String stringQualifier)
nullFormat
- format of the null value.mbo
- Mbo referencepublic void setContext(java.util.Map<java.lang.String,java.lang.Object> ctx)
public java.lang.String format(java.lang.String url, MboRemote mbo) throws java.rmi.RemoteException, MXException
url
- URL to format.mbo
- Mbo referenceMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String format(java.lang.String url, MboRemote mbo, java.lang.String relationship, java.lang.String resourceType) throws java.rmi.RemoteException, MXException
url
- URL to format.mbo
- Mbo referenceMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String format(java.lang.String url, MboRemote mbo, UserInfo userInfo, java.lang.String relationship, java.lang.String resourceType, JSONAnalyzer jsonAnalyzer) throws java.rmi.RemoteException, MXException
url
- URL to format.mbo
- Mbo referenceMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic java.lang.String replaceToken(java.lang.String fullUrl, java.lang.String urlQ, MboRemote mbo, java.lang.String resourceType, java.lang.String relationship, boolean pathToken) throws java.rmi.RemoteException, MXException
urlQ
- URL query to format.mbo
- Mbo referenceMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic static java.lang.String encode(java.lang.String token, boolean pathToken) throws MXException
token
- tokenpathToken
- is path tokenMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exceptionpublic static java.lang.String decode(java.lang.String token) throws MXException
token
- tokenMXException
- Maximo Exceptionjava.rmi.RemoteException
- Remote Exception