001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)EndpointImpl.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * EndpointImpl.java
031: *
032: * SUN PROPRIETARY/CONFIDENTIAL.
033: * This software is the proprietary information of Sun Microsystems, Inc.
034: * Use is subject to license terms.
035: *
036: * Created on November 16, 2004, 3:21 PM
037: */package com.sun.jbi.internal.security.https.jregress.server;
038:
039: import javax.xml.namespace.QName;
040:
041: /**
042: *
043: * @author Sun Microsystems, Inc.
044: */
045: public class EndpointImpl implements
046: com.sun.jbi.binding.security.Endpoint {
047:
048: /**
049: * Holds value of property mEndpointName.
050: */
051: private String mEndpointName;
052:
053: /**
054: * Holds value of property mSecConfigFileName.
055: */
056: private String mSecConfigFileName;
057:
058: /**
059: * Service QName.
060: */
061: private QName mSvcQName;
062:
063: /**
064: * Component Id.
065: */
066: private String mComponentId;
067:
068: /** Creates a new instance of EndpointImpl */
069: public EndpointImpl(String epName, QName svcQname,
070: String componentId, String secConfigFile) {
071: mEndpointName = epName;
072: mSvcQName = svcQname;
073: mComponentId = componentId;
074: mSecConfigFileName = secConfigFile;
075:
076: }
077:
078: public String getComponentId() {
079: return mComponentId;
080: }
081:
082: public String getEndpointName() {
083: return mEndpointName;
084: }
085:
086: public java.util.Iterator getOperationNames() {
087: // -- return an Iterator over an empty list
088: return (new java.util.Vector().iterator());
089: }
090:
091: public String getSecurityConfigFileName() {
092: return mSecConfigFileName;
093: }
094:
095: public QName getServiceName() {
096: return mSvcQName;
097: }
098:
099: public javax.jbi.messaging.MessageExchange.Role getRole() {
100: return javax.jbi.messaging.MessageExchange.Role.CONSUMER;
101: }
102:
103: }
|