|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.higgins.rp.servlet.server.AttributeHelper
| Constructor Summary | |
|---|---|
AttributeHelper()
|
|
| Method Summary | |
|---|---|
static String[] |
getAllSimpleStringClaims(javax.servlet.http.HttpServletRequest request)
Parse out both required and optional space-separated claim names and return just the suffix of the claim names |
static String[] |
getMultiValuedAttribute(javax.servlet.http.HttpServletRequest req,
String attrname)
|
static String[] |
getSimpleStringClaims(javax.servlet.http.HttpServletRequest request,
boolean optional)
Parse out space-separated claim names and return just the suffix of the claim name |
static String |
getSimpleStringClaimsAsMarkup(javax.servlet.http.HttpServletRequest request,
String startMarker,
String endMarker,
boolean optional)
Parse either the required claims or the optional claims and returns a string delineated by whatever marker is passed in. |
static String |
getSingleValuedAttribute(javax.servlet.http.HttpServletRequest req,
String attrname)
|
static String[] |
getSuffixes(String urlS,
String separatorS)
Parse out URLs and return just the suffix of the URL string |
static String[] |
getValues(String[][] list,
int index)
|
static String |
getValueString(String[][] list,
int index)
|
static String |
htmlEncode(String pText)
Html-encode to guard against CSS and/or SQL injection attacks |
static String |
writeXClaims(List claimList,
boolean optional)
Parse out space-separated claim names and return xhtml-style add claimType entries |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttributeHelper()
| Method Detail |
public static String getSingleValuedAttribute(javax.servlet.http.HttpServletRequest req,
String attrname)
public static String[] getMultiValuedAttribute(javax.servlet.http.HttpServletRequest req,
String attrname)
public static String[] getAllSimpleStringClaims(javax.servlet.http.HttpServletRequest request)
request - the servletrequest whose context will be examined to find configured claims
public static String[] getSimpleStringClaims(javax.servlet.http.HttpServletRequest request,
boolean optional)
request - the servletrequest whose context will be examined to find configured claimsoptional - whether to process the optional or required claims
public static String[] getSuffixes(String urlS,
String separatorS)
urlS - a string of concatenated URLsseparatorS - the chars that act as separators
public static String getSimpleStringClaimsAsMarkup(javax.servlet.http.HttpServletRequest request,
String startMarker,
String endMarker,
boolean optional)
request - the servletrequest whose context will be examined to find configured claimsstartMarker - the tag to start an entry withendMarker - the tag to end an entry withoptional - whether to process the optional or required claims
public static String[] getValues(String[][] list,
int index)
public static String getValueString(String[][] list,
int index)
public static String htmlEncode(String pText)
pText - string that may contain special characters like &, <, >, "
&, >, < or ".
public static String writeXClaims(List claimList,
boolean optional)
throws IOException
optional - whether to process the optional or required claims
IOException
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||