1 | // Copyright (C) 2009 Google Inc. |
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 | |
14 | package com.google.caja.demos.playground.client; |
15 | |
16 | import com.google.gwt.user.client.rpc.IsSerializable; |
17 | |
18 | /** |
19 | * Result of cajoling using the cajoling service. Contains the static html, |
20 | * css and javascript as well as errors and warnings from cajoling. |
21 | * |
22 | * @author jasvir@google.com (Jasvir Nagra) |
23 | */ |
24 | public class CajolingServiceResult implements IsSerializable { |
25 | private String html; |
26 | private String javascript; |
27 | private String[] messages; |
28 | |
29 | public CajolingServiceResult() { |
30 | // Provided for deserialization. |
31 | } |
32 | |
33 | public CajolingServiceResult(String html, String javascript, |
34 | String[] messages) { |
35 | this.html = html; |
36 | this.javascript = javascript; |
37 | this.messages = messages; |
38 | } |
39 | |
40 | public String getHtml() { |
41 | return html; |
42 | } |
43 | public String getJavascript() { |
44 | return javascript; |
45 | } |
46 | public String[] getMessages() { |
47 | return messages; |
48 | } |
49 | } |