EMMA Coverage Report (generated Mon Nov 01 16:48:29 PDT 2010)
[all classes][com.google.caja.service]

COVERAGE SUMMARY FOR SOURCE FILE [ContentTypeCheck.java]

nameclass, %method, %block, %line, %
ContentTypeCheck.java100% (1/1)100% (1/1)100% (3/3)100% (1/1)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class ContentTypeCheck100% (1/1)100% (1/1)100% (3/3)100% (1/1)
ContentTypeCheck (): void 100% (1/1)100% (3/3)100% (1/1)

1// Copyright 2007 Google Inc. All Rights Reserved.
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6//      http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13 
14package com.google.caja.service;
15 
16public abstract class ContentTypeCheck {
17 
18  /**
19   * Tests whether content-type {@code spec} mime-type
20   * is consistent with {@code candidate} mime-type.
21   *
22   * @param spec a specification by the recipient of a stream of data
23   * describing the set of mime-types that the recipient can accept. This
24   * mime-type may contain wildcards.
25   *
26   * @param candidate the concrete mime-type of a stream of data. This
27   * mime-type must never contain wildcards.
28   *
29   * @return true if the {@code candidate} mime-type meets the requirements
30   * of the spec.
31   */
32  public abstract boolean check(String spec, String candidate);
33}

[all classes][com.google.caja.service]
EMMA 2.0.5312 (C) Vladimir Roubtsov