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: * @(#)DummyBindingContext.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * DummyBindingContext.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 3, 2004, 7:01 PM
037: */package com.sun.jbi.internal.security;
038:
039: /**
040: *
041: * @author Sun Microsystems, Inc.
042: */
043: public class DummyBindingContext implements
044: com.sun.jbi.component.ComponentContext {
045:
046: /** Name */
047: String mName;
048:
049: /**
050: * Creates a new instance of SampleBindingContext
051: * @param name is the Component Name
052: */
053: public DummyBindingContext(String name) {
054:
055: mName = name;
056: }
057:
058: /**
059: * Registers the named endpoint with the NMR.
060: * @param serviceName the qualified name of the service exposed by the
061: * endpoint.
062: * @param endpointName the name of the endpoint to be registered.
063: * @return a reference to the registered endpoint.
064: * @throws javax.jbi.JBIException if the endpoint cannot be registered.
065: */
066: public javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(
067: javax.xml.namespace.QName serviceName, String endpointName)
068: throws javax.jbi.JBIException {
069: return null;
070: }
071:
072: /**
073: * Queries the NMR for endpoints registered against the specified service.
074: * @param serviceName the qualified name of the service.
075: * @return array of available endpoints for the specified service, can
076: * be empty if none exist.
077: * @throws javax.jbi.JBIException if the service reference is invalid.
078: */
079: public javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(
080: javax.xml.namespace.QName serviceName) {
081: return null;
082: }
083:
084: /**
085: * Deregisters the specified endpoint with the NMR.
086: * @param endpoint reference to the endpoint to be deregistered.
087: * @throws javax.jbi.JBIException if the endpoint cannot be deregistered.
088: */
089: public void deactivateEndpoint(
090: javax.jbi.servicedesc.ServiceEndpoint endpoint)
091: throws javax.jbi.JBIException {
092: }
093:
094: /**
095: * Deregisters the specified external endpoint with the NMR. This indicates
096: * to the NMR that external service consumers can no longer access the
097: * internal service by this name.
098: * @param externalEndpoint the external endpoint to be deregistered.
099: * @throws javax.jbi.JBIException if the endpoint cannot be deregistered.
100: */
101: public void deregisterExternalEndpoint(
102: javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
103: throws javax.jbi.JBIException {
104: }
105:
106: /**
107: * @return null, never used in junit tests.
108: */
109: public void registerXAResource(
110: javax.transaction.xa.XAResource resource)
111: throws javax.jbi.JBIException {
112: }
113:
114: /**
115: * @return null, never used in junit tests.
116: */
117: public javax.jbi.messaging.DeliveryChannel getBindingChannel()
118: throws javax.jbi.messaging.MessagingException {
119: return null;
120: }
121:
122: /**
123: * @return the Component Name
124: */
125: public String getComponentName() {
126: return mName;
127: }
128:
129: /**
130: * @return null, not needed by junit tests
131: */
132: public String getComponentRoot() {
133: return null;
134: }
135:
136: /**
137: * @return null, never used in junit tests.
138: */
139: public javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
140: throws javax.jbi.messaging.MessagingException {
141: return null;
142: }
143:
144: /**
145: * Get the service description for the named endpoint, if any exists.
146: * @param service the qualified name of the endpoint's service.
147: * @param name the name of the endpoint.
148: * @return the named endpoint, or <code>null</code> if the named endpoint
149: * is not active.
150: */
151: public javax.jbi.servicedesc.ServiceEndpoint getEndpoint(
152: javax.xml.namespace.QName service, String name) {
153: return null;
154: }
155:
156: /**
157: * Queries the NMR for active endpoints that implement the given interface.
158: * This will return the endpoints for all services and endpoints that
159: * implement the named interface (portType in WSDL 1.1). This method does
160: * NOT include external endpoints (those registered using
161: * registerExternalEndpoint(ServiceEndpoint)).
162: * @param interfaceName qualified name of interface/portType that is
163: * implemented by the endpoint
164: * @return ServiceEndpoint[] list of available endpoints for the specified
165: * interface name; potentially zero-length.
166: */
167: public javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(
168: javax.xml.namespace.QName interfaceName) {
169: return null;
170: }
171:
172: /**
173: * Retrieve metadata for the specified endpoint.
174: * @param endpoint reference to the endpoint.
175: * @return the metadata describing the endpoint or <code>null</code> if
176: * metadata is unavailable.
177: * @throws javax.jbi.JBIException if the endpoint reference is invalid.
178: */
179: public org.w3c.dom.Document getEndpointDescriptor(
180: javax.jbi.servicedesc.ServiceEndpoint endpoint)
181: throws javax.jbi.JBIException {
182: return null;
183: }
184:
185: /**
186: * Queries the NMR for external endpoints that implement the specified
187: * interface name.
188: * @param interfaceName the qualified name of the interface/portType that
189: * is implemented by the endpoints.
190: * @return array of available external endpoints for the specified interface
191: * name; can be empty if none exist.
192: * @throws javax.jbi.JBIException if the interface name is invalid.
193: */
194: public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(
195: javax.xml.namespace.QName interfaceName) {
196: return null;
197: }
198:
199: /**
200: * Queries the NMR for external endpoints that are part of the specified
201: * service.
202: * @param serviceName the qualified name of the service that contains the
203: * endpoints.
204: * @return array of available external endpoints for the specified service
205: * name; can be empty if none exist.
206: * @throws javax.jbi.JBIException if the service name is invalid.
207: */
208: public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(
209: javax.xml.namespace.QName serviceName) {
210: return null;
211: }
212:
213: /**
214: * @return null, not needed by junit tests
215: */
216: public String getInstallRoot() {
217: return null;
218: }
219:
220: /**
221: * @return null, not needed by junit tests
222: */
223: public java.util.logging.Logger getLogger(String name, String rbName) {
224: return null;
225: }
226:
227: /**
228: * @return null, not needed by junit tests
229: */
230: public javax.jbi.management.MBeanNames getMBeanNames() {
231: return null;
232: }
233:
234: /**
235: * @return null, not needed by junit tests
236: */
237: public javax.management.MBeanServer getMBeanServer() {
238: return null;
239: }
240:
241: /**
242: * @return null, not needed by junit tests
243: */
244: public com.sun.jbi.management.ManagementMessageFactory getManagementMessageFactory() {
245: return null;
246: }
247:
248: /**
249: * @return null, not needed by junit tests
250: */
251: public javax.naming.InitialContext getNamingContext() {
252: return null;
253: }
254:
255: /**
256: * Queries the NMR for registered endpoints that implement the specified
257: * interface. This will return the endpoints for all services and endpoints
258: * that implement the named interface.
259: * @param interfaceName the qualified name of the interface/portType that
260: * is implemented by the endpoint.
261: * @return array of available endpoints for the specified interface name;
262: * can be empty if none exist.
263: * @throws javax.jbi.JBIException if the interface reference is invalid.
264: */
265: public javax.jbi.servicedesc.ServiceEndpoint[] getRegisteredEndpoints(
266: javax.xml.namespace.QName interfaceName)
267: throws javax.jbi.JBIException {
268: return null;
269: }
270:
271: public com.sun.jbi.StringTranslator getStringTranslator(
272: String packageName) {
273: return null;
274: }
275:
276: /**
277: */
278: public com.sun.jbi.StringTranslator getStringTranslatorFor(
279: Object object) {
280: return null;
281: }
282:
283: /**
284: * @return null, not needed by junit tests
285: */
286: public String getWorkspaceRoot() {
287: return null;
288: }
289:
290: /**
291: * @return the SecurityHandler for the Binding
292: */
293: public com.sun.jbi.binding.security.SecurityHandler getSecurityHandler() {
294: return null;
295: }
296:
297: /**
298: * Get a TransactionManager from the AppServer.
299: * @return A TransactionManager instance.
300: */
301: public Object getTransactionManager() {
302: return null;
303: }
304:
305: /**
306: * Register a logger.
307: * @param logger The logger instance.
308: * @param name The logger name.
309: * @throws javax.jbi.JBIException if the logger cannot be registered.
310: */
311: public void registerLogger(java.util.logging.Logger logger,
312: String name) throws javax.jbi.JBIException {
313: return;
314: }
315:
316: /**
317: * Unregister a logger.
318: * @param logger The logger instance.
319: * @throws javax.jbi.JBIException if the logger cannot be unregistered.
320: */
321: public void unregisterLogger(java.util.logging.Logger logger)
322: throws javax.jbi.JBIException {
323: return;
324: }
325:
326: /**
327: */
328: public java.util.logging.Logger getLogger(String logger) {
329: return null;
330: }
331:
332: /**
333: * Registers the specified external endpoint with the NMR. This indicates
334: * to the NMR that the specified endpoint is used as a proxy for external
335: * service consumers to access an internal service by the same name.
336: * @param externalEndpoint the external endpoint to be registered.
337: */
338: public void registerExternalEndpoint(
339: javax.jbi.servicedesc.ServiceEndpoint externalEndpoint) {
340: }
341:
342: public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(
343: org.w3c.dom.DocumentFragment endpointReference) {
344: return null;
345: }
346:
347: public com.sun.jbi.wsdl2.WsdlFactory getWsdlFactory()
348: throws com.sun.jbi.wsdl2.WsdlException {
349: return null;
350: }
351:
352: /**
353: * Returns a KeyStoreUtil object that allows components to create,
354: * read, update, and delete keys. The KeyStoreUtil also allows the
355: * encryption and decryption of text using the keys stored in the
356: * private KeyStore.
357: *
358: * @return An instance of a KeyStoreUtil
359: */
360: public com.sun.jbi.security.KeyStoreUtil getKeyStoreUtil() {
361: return null;
362: }
363:
364: }
|