1 /* Copyright 2004-2005 Graeme Rocher
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
15 package org
.codehaus
.groovy
.grails
.web
.pages
;
17 import java
.io
.InputStream
;
20 * A class that encapsulates the information necessary to describe a GSP
22 * @author Graeme Rocher
26 * Created: Feb 23, 2007
29 class GroovyPageMetaInfo
{
31 private Class pageClass
;
32 private long lastModified
;
33 private InputStream groovySource
;
34 private String contentType
;
35 private int[] lineNumbers
;
38 public Class
getPageClass() {
42 public void setPageClass(Class pageClass
) {
43 this.pageClass
= pageClass
;
46 public long getLastModified() {
50 public void setLastModified(long lastModified
) {
51 this.lastModified
= lastModified
;
54 public InputStream
getGroovySource() {
58 public void setGroovySource(InputStream groovySource
) {
59 this.groovySource
= groovySource
;
62 public String
getContentType() {
66 public void setContentType(String contentType
) {
67 this.contentType
= contentType
;
70 public int[] getLineNumbers() {
74 public void setLineNumbers(int[] lineNumbers
) {
75 this.lineNumbers
= lineNumbers
;