001: /*
002: * Copyright 2004-2007 the original author or authors.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: *
016: */
017:
018: package org.jpublish.util;
019:
020: /** Utility class which represents an input/output encoding mapped to a path.
021:
022: @author Anthony Eden
023: */
024:
025: public class CharacterEncodingMap {
026:
027: private String path;
028: private String pageEncoding;
029: private String templateEncoding;
030: private String requestEncoding;
031: private String responseEncoding;
032:
033: /** Get the path.
034:
035: @return The path
036: */
037:
038: public String getPath() {
039: return path;
040: }
041:
042: /** Set the path.
043:
044: @param path The path
045: */
046:
047: public void setPath(String path) {
048: this .path = path;
049: }
050:
051: /** Get the page encoding. This value is used as the default for all
052: content retrieved from the repository.
053:
054: @return The page encoding
055: */
056:
057: public String getPageEncoding() {
058: return pageEncoding;
059: }
060:
061: /** Set the page encoding.
062:
063: @param pageEncoding The new page encoding
064: */
065:
066: public void setPageEncoding(String pageEncoding) {
067: this .pageEncoding = pageEncoding;
068: }
069:
070: /** Get the template encoding. This value is used as the default for the
071: template.
072:
073: @return The template encoding
074: */
075:
076: public String getTemplateEncoding() {
077: return templateEncoding;
078: }
079:
080: /** Set the template encoding.
081:
082: @param templateEncoding The new template encoding
083: */
084:
085: public void setTemplateEncoding(String templateEncoding) {
086: this .templateEncoding = templateEncoding;
087: }
088:
089: /** Get the request encoding.
090:
091: @return The request encoding
092: */
093:
094: public String getRequestEncoding() {
095: return requestEncoding;
096: }
097:
098: /** Set the request encoding.
099:
100: @param requestEncoding The new request encoding
101: */
102:
103: public void setRequestEncoding(String requestEncoding) {
104: this .requestEncoding = requestEncoding;
105: }
106:
107: /** Get the response encoding.
108:
109: @return The response encoding
110: */
111:
112: public String getResponseEncoding() {
113: return responseEncoding;
114: }
115:
116: /** Set the response encoding.
117:
118: @param responseEncoding The new response encoding
119: */
120:
121: public void setResponseEncoding(String responseEncoding) {
122: this.responseEncoding = responseEncoding;
123: }
124:
125: }
|