本文整理了Java中org.restlet.data.Reference.decode
方法的一些代码示例,展示了Reference.decode
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Reference.decode
方法的具体详情如下:
包路径:org.restlet.data.Reference
类名称:Reference
方法名:decode
[英]Decodes a given string using the standard URI encoding mechanism and the UTF-8 character set.
[中]使用标准URI编码机制和UTF-8字符集解码给定字符串。
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Decodes a given string using the standard URI encoding mechanism and the
* UTF-8 character set.
*
* @param toDecode
* The string to decode.
* @return The decoded string.
*/
public static String decode(String toDecode) {
return decode(toDecode, CharacterSet.UTF_8);
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded scheme component.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded scheme component.
* @see #getScheme()
*/
public String getScheme(boolean decode) {
return decode ? decode(getScheme()) : getScheme();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Returns the optionnally decoded relative part.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded relative part.
* @see #getRelativePart()
*/
public String getRelativePart(boolean decode) {
return decode ? decode(getRelativePart()) : getRelativePart();
}
代码示例来源:origin: DeviceConnect/DeviceConnect-Android
/**
* Returns the optionnally decoded user info component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded user info component.
* @see #getUserInfo()
*/
public String getUserInfo(boolean decode) {
return decode ? decode(getUserInfo()) : getUserInfo();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded host domain name component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded host domain name component.
* @see #getHostDomain()
*/
public String getHostDomain(boolean decode) {
return decode ? decode(getHostDomain()) : getHostDomain();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded host identifier.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded host identifier.
* @see #getHostIdentifier()
*/
public String getHostIdentifier(boolean decode) {
return decode ? decode(getHostIdentifier()) : getHostIdentifier();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded query component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded query component.
* @see #getQuery()
*/
public String getQuery(boolean decode) {
return decode ? decode(getQuery()) : getQuery();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded relative part.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded relative part.
* @see #getRelativePart()
*/
public String getRelativePart(boolean decode) {
return decode ? decode(getRelativePart()) : getRelativePart();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded hierarchical part.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded hierarchical part.
* @see #getHierarchicalPart()
*/
public String getHierarchicalPart(boolean decode) {
return decode ? decode(getHierarchicalPart()) : getHierarchicalPart();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded absolute resource identifier.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded absolute resource identifier.
* @see #getIdentifier()
*/
public String getIdentifier(boolean decode) {
return decode ? decode(getIdentifier()) : getIdentifier();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded authority component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded authority component.
* @see #getAuthority()
*/
public String getAuthority(boolean decode) {
return decode ? decode(getAuthority()) : getAuthority();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded hierarchical part.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded hierarchical part.
* @see #getHierarchicalPart()
*/
public String getHierarchicalPart(boolean decode) {
return decode ? decode(getHierarchicalPart()) : getHierarchicalPart();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded absolute resource identifier.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded absolute resource identifier.
* @see #getIdentifier()
*/
public String getIdentifier(boolean decode) {
return decode ? decode(getIdentifier()) : getIdentifier();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded path component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded path component.
* @see #getPath()
*/
public String getPath(boolean decode) {
return decode ? decode(getPath()) : getPath();
}
代码示例来源:origin: org.restlet/org.restlet
/**
* Returns the optionnally decoded scheme component.
*
* @param decode
* Indicates if the result should be decoded using the
* {@link #decode(String)} method.
* @return The optionnally decoded scheme component.
* @see #getScheme()
*/
public String getScheme(boolean decode) {
return decode ? decode(getScheme()) : getScheme();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded host domain name component.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded host domain name component.
* @see #getHostDomain()
*/
public String getHostDomain(boolean decode) {
return decode ? decode(getHostDomain()) : getHostDomain();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded matrix.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded matrix.
* @see #getMatrix()
*/
public String getMatrix(boolean decode) {
return decode ? decode(getMatrix()) : getMatrix();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded query component.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded query component.
* @see #getQuery()
*/
public String getQuery(boolean decode) {
return decode ? decode(getQuery()) : getQuery();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded relative part.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded relative part.
* @see #getRelativePart()
*/
public String getRelativePart(boolean decode) {
return decode ? decode(getRelativePart()) : getRelativePart();
}
代码示例来源:origin: org.restlet.osgi/org.restlet
/**
* Returns the optionnally decoded user info component.
*
* @param decode
* Indicates if the result should be decoded using the {@link #decode(String)} method.
* @return The optionnally decoded user info component.
* @see #getUserInfo()
*/
public String getUserInfo(boolean decode) {
return decode ? decode(getUserInfo()) : getUserInfo();
}
内容来源于网络,如有侵权,请联系作者删除!