001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: JOnAS team
023: * --------------------------------------------------------------------------
024: * $Id: IorSecurityConfigMapping.java 10143 2007-04-04 08:10:15Z durieuxp $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_ejb.deployment.xml;
027:
028: import org.objectweb.jonas_lib.deployment.xml.AbsElement;
029:
030: /**
031: * This class defines the implementation of the element ior-security-config-mapping
032: * @author JOnAS team
033: */
034: public class IorSecurityConfigMapping extends AbsElement {
035:
036: /**
037: * transport-config
038: */
039: private TransportConfigMapping transportConfig = null;
040:
041: /**
042: * as-context
043: */
044: private AsContextMapping asContext = null;
045:
046: /**
047: * sas-context
048: */
049: private SasContextMapping sasContext = null;
050:
051: /**
052: * Constructor
053: */
054: public IorSecurityConfigMapping() {
055: super ();
056: }
057:
058: /**
059: * @return Returns the asContext.
060: */
061: public AsContextMapping getAsContext() {
062: return asContext;
063: }
064:
065: /**
066: * @param asContext The asContext to set.
067: */
068: public void setAsContext(AsContextMapping asContext) {
069: this .asContext = asContext;
070: }
071:
072: /**
073: * @return Returns the sasContext.
074: */
075: public SasContextMapping getSasContext() {
076: return sasContext;
077: }
078:
079: /**
080: * @param sasContext The sasContext to set.
081: */
082: public void setSasContext(SasContextMapping sasContext) {
083: this .sasContext = sasContext;
084: }
085:
086: /**
087: * @return Returns the transportConfig.
088: */
089: public TransportConfigMapping getTransportConfig() {
090: return transportConfig;
091: }
092:
093: /**
094: * @param transportConfig The transportConfig to set.
095: */
096: public void setTransportConfig(
097: TransportConfigMapping transportConfig) {
098: this .transportConfig = transportConfig;
099: }
100:
101: /**
102: * Represents this element by it's XML description.
103: * @param indent use this indent for prexifing XML representation.
104: * @return the XML description of this object.
105: */
106: public String toXML(int indent) {
107: StringBuffer sb = new StringBuffer();
108: sb.append(indent(indent));
109: sb.append("<ior-security-config>\n");
110:
111: indent += 2;
112:
113: // transport-config
114: sb.append(transportConfig.toXML(indent));
115: // as-context
116: sb.append(asContext.toXML(indent));
117: // sas-context
118: sb.append(sasContext.toXML(indent));
119: indent -= 2;
120: sb.append(indent(indent));
121: sb.append("</ior-security-config>\n");
122:
123: return sb.toString();
124: }
125: }
|