Source Code Cross Referenced for SampleBindingContext.java in  » ESB » open-esb » com » sun » jbi » internal » security » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » com.sun.jbi.internal.security 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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:         * @(#)SampleBindingContext.java
025:         * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026:         *
027:         * END_HEADER - DO NOT EDIT
028:         */
029:        /**
030:         *  SampleBindingContext.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:        import com.sun.jbi.internal.security.SecurityService;
040:
041:        /**
042:         *
043:         * @author Sun Microsystems, Inc.
044:         */
045:        public class SampleBindingContext implements 
046:                com.sun.jbi.component.ComponentContext {
047:
048:            /** Name */
049:            String mName;
050:
051:            /** Security Handler. */
052:            com.sun.jbi.binding.security.SecurityHandler mSecurityHandler;
053:
054:            /** 
055:             * Creates a new instance of SampleBindingContext 
056:             * @param compId is the ComponentId.
057:             * @param name is the Component Name
058:             */
059:            public SampleBindingContext(String name) {
060:                this (name, null);
061:            }
062:
063:            /** 
064:             * Creates a new instance of SampleBindingContext 
065:             * @param name is the Component Name
066:             */
067:            public SampleBindingContext(String name, SecurityService svc) {
068:                mName = name;
069:
070:                if (svc != null) {
071:                    mSecurityHandler = svc.createSecurityHandler(this );
072:                }
073:            }
074:
075:            /**
076:             * Registers the named endpoint with the NMR.
077:             * @param serviceName the qualified name of the service exposed by the
078:             * endpoint.
079:             * @param endpointName the name of the endpoint to be registered.
080:             * @return a reference to the registered endpoint.
081:             * @throws javax.jbi.JBIException if the endpoint cannot be registered.
082:             */
083:            public javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(
084:                    javax.xml.namespace.QName serviceName, String endpointName)
085:                    throws javax.jbi.JBIException {
086:                return null;
087:            }
088:
089:            /**
090:             * Queries the NMR for endpoints registered against the specified service.
091:             * @param serviceName the qualified name of the service.
092:             * @return array of available endpoints for the specified service, can
093:             * be empty if none exist.
094:             * @throws javax.jbi.JBIException if the service reference is invalid.
095:             */
096:            public javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(
097:                    javax.xml.namespace.QName serviceName) {
098:                return null;
099:            }
100:
101:            /**
102:             * Deactivates the specified endpoint with the NMR. Deactivation indicates
103:             * to the NMR that this component will no longer process requests sent to
104:             * the named endpoint.
105:             * @param endpoint reference to the endpoint to be deactivated.
106:             * @throws javax.jbi.JBIException if the endpoint cannot be deactivated.
107:             */
108:            public void deactivateEndpoint(
109:                    javax.jbi.servicedesc.ServiceEndpoint endpoint)
110:                    throws javax.jbi.JBIException {
111:            }
112:
113:            /**
114:             * Deregisters the specified external endpoint with the NMR.  This indicates
115:             * to the NMR that external service consumers can no longer access the
116:             * internal service by this name.
117:             * @param externalEndpoint the external endpoint to be deregistered.
118:             * @throws javax.jbi.JBIException if the endpoint cannot be deregistered.
119:             */
120:            public void deregisterExternalEndpoint(
121:                    javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
122:                    throws javax.jbi.JBIException {
123:            }
124:
125:            /**
126:             * Register local XAResources.
127:             */
128:            public void registerXAResource(
129:                    javax.transaction.xa.XAResource resource) {
130:            }
131:
132:            /** 
133:            /**
134:             * Get SecurityHandler.
135:             */
136:            public com.sun.jbi.binding.security.SecurityHandler getSecurityHandler() {
137:                return mSecurityHandler;
138:            }
139:
140:            /** 
141:             * @return null, never used in junit tests.
142:             */
143:            public javax.jbi.messaging.DeliveryChannel getBindingChannel()
144:                    throws javax.jbi.messaging.MessagingException {
145:                return null;
146:            }
147:
148:            /** 
149:             * @return null, never used in junit tests.
150:             */
151:            public javax.jbi.messaging.DeliveryChannel getDeliveryChannel()
152:                    throws javax.jbi.messaging.MessagingException {
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:             * @return the Component Name
174:             */
175:            public String getComponentName() {
176:                return mName;
177:            }
178:
179:            /**
180:             * @return null, not needed by junit tests
181:             */
182:            public String getComponentRoot() {
183:                return null;
184:            }
185:
186:            /**
187:             * Get the service description for the named endpoint, if any exists.
188:             * @param service the qualified name of the endpoint's service.
189:             * @param name the name of the endpoint.
190:             * @return the named endpoint, or <code>null</code> if the named endpoint
191:             * is not active.
192:             */
193:            public javax.jbi.servicedesc.ServiceEndpoint getEndpoint(
194:                    javax.xml.namespace.QName service, String name) {
195:                return null;
196:            }
197:
198:            /**
199:             * Retrieve metadata for the specified endpoint.
200:             * @param endpoint reference to the endpoint.
201:             * @return the metadata describing the endpoint or <code>null</code> if
202:             * metadata is unavailable.
203:             * @throws javax.jbi.JBIException if the endpoint reference is invalid.
204:             */
205:            public org.w3c.dom.Document getEndpointDescriptor(
206:                    javax.jbi.servicedesc.ServiceEndpoint endpoint)
207:                    throws javax.jbi.JBIException {
208:                return null;
209:            }
210:
211:            /**
212:             * Queries the NMR for external endpoints that implement the specified
213:             * interface name.
214:             * @param interfaceName the qualified name of the interface/portType that
215:             * is implemented by the endpoints.
216:             * @return array of available external endpoints for the specified interface
217:             * name; can be empty if none exist.
218:             * @throws javax.jbi.JBIException if the interface name is invalid.
219:             */
220:            public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(
221:                    javax.xml.namespace.QName interfaceName) {
222:                return null;
223:            }
224:
225:            /**
226:             * Queries the NMR for external endpoints that are part of the specified
227:             * service.
228:             * @param serviceName the qualified name of the service that contains the
229:             * endpoints.
230:             * @return array of available external endpoints for the specified service
231:             * name; can be empty if none exist.
232:             * @throws javax.jbi.JBIException if the service name is invalid.
233:             */
234:            public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(
235:                    javax.xml.namespace.QName serviceName) {
236:                return null;
237:            }
238:
239:            /**
240:             * @return null, not needed by junit tests
241:             */
242:            public String getInstallRoot() {
243:                return null;
244:            }
245:
246:            /**
247:             * @return null, not needed by junit tests
248:             */
249:            public java.util.logging.Logger getLogger(String name, String rbName) {
250:                return null;
251:            }
252:
253:            /**
254:             *  @return null, not needed by junit tests
255:             */
256:            public javax.jbi.management.MBeanNames getMBeanNames() {
257:                return null;
258:            }
259:
260:            /**
261:             *  @return null, not needed by junit tests
262:             */
263:            public javax.management.MBeanServer getMBeanServer() {
264:                return null;
265:            }
266:
267:            /**
268:             *  @return null, not needed by junit tests
269:             */
270:            public com.sun.jbi.management.ManagementMessageFactory getManagementMessageFactory() {
271:                return null;
272:            }
273:
274:            /**
275:             *  @return null, not needed by junit tests
276:             */
277:            public javax.naming.InitialContext getNamingContext() {
278:                return null;
279:            }
280:
281:            /**
282:             * Queries the NMR for registered endpoints that implement the specified
283:             * interface. This will return the endpoints for all services and endpoints
284:             * that implement the named interface.
285:             * @param interfaceName the qualified name of the interface/portType that
286:             * is implemented by the endpoint.
287:             * @return array of available endpoints for the specified interface name;
288:             * can be empty if none exist.
289:             * @throws javax.jbi.JBIException if the interface reference is invalid.
290:             */
291:            public javax.jbi.servicedesc.ServiceEndpoint[] getRegisteredEndpoints(
292:                    javax.xml.namespace.QName interfaceName)
293:                    throws javax.jbi.JBIException {
294:                return null;
295:            }
296:
297:            public com.sun.jbi.StringTranslator getStringTranslator(
298:                    String packageName) {
299:                Class clazz;
300:                java.lang.reflect.Constructor ctor;
301:                try {
302:                    clazz = Class
303:                            .forName("com.sun.jbi.framework.StringTranslator");
304:                    ctor = clazz.getDeclaredConstructors()[0];
305:                    ctor.setAccessible(true);
306:                    return (com.sun.jbi.StringTranslator) ctor
307:                            .newInstance(new Object[] { packageName,
308:                                    this .getClass().getClassLoader() });
309:                } catch (Exception ex) {
310:                    ex.printStackTrace();
311:                    return null;
312:                }
313:
314:            }
315:
316:            public com.sun.jbi.StringTranslator getStringTranslatorFor(
317:                    Object object) {
318:                if (object != null) {
319:                    return getStringTranslator(object.getClass().getPackage()
320:                            .getName());
321:                }
322:                return null;
323:            }
324:
325:            /**
326:             * Get a TransactionManager from the AppServer.
327:             * @return A TransactionManager instance.
328:             */
329:            public Object getTransactionManager() {
330:                return null;
331:            }
332:
333:            /**
334:             * @return null, not needed by junit tests
335:             */
336:            public String getWorkspaceRoot() {
337:                return null;
338:            }
339:
340:            /**
341:             * Register a logger.
342:             * @param logger The logger instance to be registered.
343:             * @param name The logger name to be registered.
344:             * @throws javax.jbi.JBIException if the logger cannot be registered.
345:             */
346:            public void registerLogger(java.util.logging.Logger logger,
347:                    String name) throws javax.jbi.JBIException {
348:                return;
349:            }
350:
351:            /**
352:             * Unregister a logger.
353:             * @param logger The logger instance to be unregistered.
354:             * @throws javax.jbi.JBIException if the logger cannot be unregistered.
355:             */
356:            public void unregisterLogger(java.util.logging.Logger logger)
357:                    throws javax.jbi.JBIException {
358:                return;
359:            }
360:
361:            /**
362:             */
363:            public java.util.logging.Logger getLogger(String logger) {
364:                return null;
365:            }
366:
367:            /**
368:             * Registers the specified external endpoint with the NMR.  This indicates
369:             * to the NMR that the specified endpoint is used as a proxy for external
370:             * service consumers to access an internal service by the same name.
371:             * @param externalEndpoint the external endpoint to be registered.
372:             */
373:            public void registerExternalEndpoint(
374:                    javax.jbi.servicedesc.ServiceEndpoint externalEndpoint) {
375:            }
376:
377:            public javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(
378:                    org.w3c.dom.DocumentFragment endpointReference) {
379:                return null;
380:            }
381:
382:            public com.sun.jbi.wsdl2.WsdlFactory getWsdlFactory()
383:                    throws com.sun.jbi.wsdl2.WsdlException {
384:                return null;
385:            }
386:
387:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.