|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnu.validator.xml.ContentTypeParser
public class ContentTypeParser
| Field Summary | |
|---|---|
private boolean |
acceptAllKnownXmlTypes
|
private boolean |
allowGenericXml
|
private boolean |
allowHtml
|
private boolean |
allowRnc
|
private boolean |
allowXhtml
|
private static Pattern |
CHARSET
|
private ErrorHandler |
errorHandler
|
private boolean |
laxContentType
|
| Constructor Summary | |
|---|---|
ContentTypeParser(ErrorHandler errorHandler,
boolean laxContentType)
|
|
ContentTypeParser(ErrorHandler errorHandler,
boolean laxContentType,
boolean allowRnc,
boolean allowHtml,
boolean allowXhtml,
boolean acceptAllKnownXmlTypes,
boolean allowGenericXml)
|
|
| Method Summary | |
|---|---|
TypedInputSource |
buildTypedInputSource(String baseUri,
String publicId,
String contentType)
|
boolean |
isAcceptAllKnownXmlTypes()
Returns the acceptAllKnownXmlTypes. |
boolean |
isAllowGenericXml()
Returns the allowGenericXml. |
boolean |
isAllowHtml()
Returns the allowHtml. |
boolean |
isAllowRnc()
Returns the allowRnc. |
boolean |
isAllowXhtml()
Returns the allowXhtml. |
boolean |
isLaxContentType()
Returns the laxContentType. |
boolean |
isOnlyHtmlAllowed()
|
protected boolean |
rncContentType(String type,
InputSource is)
|
void |
setAcceptAllKnownXmlTypes(boolean acceptAllKnownXmlTypes)
Sets the acceptAllKnownXmlTypes. |
void |
setAllowGenericXml(boolean allowGenericXml)
Sets the allowGenericXml. |
void |
setAllowHtml(boolean allowHtml)
Sets the allowHtml. |
void |
setAllowRnc(boolean allowRnc)
Sets the allowRnc. |
void |
setAllowXhtml(boolean allowXhtml)
Sets the allowXhtml. |
void |
setLaxContentType(boolean laxContentType)
Sets the laxContentType. |
protected boolean |
xmlContentType(String type,
InputSource is)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final Pattern CHARSET
private final ErrorHandler errorHandler
private boolean laxContentType
private boolean allowRnc
private boolean allowHtml
private boolean allowXhtml
private boolean acceptAllKnownXmlTypes
private boolean allowGenericXml
| Constructor Detail |
|---|
public ContentTypeParser(ErrorHandler errorHandler,
boolean laxContentType,
boolean allowRnc,
boolean allowHtml,
boolean allowXhtml,
boolean acceptAllKnownXmlTypes,
boolean allowGenericXml)
errorHandler - laxContentType - allowRnc - allowHtml - allowXhtml - acceptAllKnownXmlTypes - allowGenericXml -
public ContentTypeParser(ErrorHandler errorHandler,
boolean laxContentType)
| Method Detail |
|---|
protected boolean xmlContentType(String type,
InputSource is)
throws SAXException
SAXException
protected boolean rncContentType(String type,
InputSource is)
throws SAXException
SAXException
public TypedInputSource buildTypedInputSource(String baseUri,
String publicId,
String contentType)
throws SAXException,
SAXParseException
baseUri - publicId - contentType -
SAXException
SAXParseExceptionpublic boolean isAcceptAllKnownXmlTypes()
public void setAcceptAllKnownXmlTypes(boolean acceptAllKnownXmlTypes)
acceptAllKnownXmlTypes - the acceptAllKnownXmlTypes to setpublic boolean isAllowGenericXml()
public void setAllowGenericXml(boolean allowGenericXml)
allowGenericXml - the allowGenericXml to setpublic boolean isAllowHtml()
public void setAllowHtml(boolean allowHtml)
allowHtml - the allowHtml to setpublic boolean isAllowRnc()
public void setAllowRnc(boolean allowRnc)
allowRnc - the allowRnc to setpublic boolean isAllowXhtml()
public void setAllowXhtml(boolean allowXhtml)
allowXhtml - the allowXhtml to setpublic boolean isLaxContentType()
public void setLaxContentType(boolean laxContentType)
laxContentType - the laxContentType to setpublic boolean isOnlyHtmlAllowed()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||