|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.caja.service.ContentTypeCheck com.google.caja.service.StrictContentTypeCheck
public class StrictContentTypeCheck
Strict content-type check checks if the requested content-type is exactly the same as the received content-type
Constructor Summary | |
---|---|
StrictContentTypeCheck()
|
Method Summary | |
---|---|
boolean |
check(java.lang.String spec,
java.lang.String candidate)
Checks if the spec matches candidate exactly |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StrictContentTypeCheck()
Method Detail |
---|
public boolean check(java.lang.String spec, java.lang.String candidate)
spec
matches candidate
exactly
check
in class ContentTypeCheck
spec
- a specification by the recipient of a stream of data
describing the set of mime-types that the recipient can accept. This
mime-type may contain wildcards.candidate
- the concrete mime-type of a stream of data. This
mime-type must never contain wildcards.
spec
matches candidate
, else returns false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |