From jbossws-commits at lists.jboss.org Fri Apr 8 11:48:57 2011 Content-Type: multipart/mixed; boundary="===============4892196821893878532==" MIME-Version: 1.0 From: jbossws-commits at lists.jboss.org To: jbossws-commits at lists.jboss.org Subject: [jbossws-commits] JBossWS SVN: r14041 - in api/branches/asoldano/src/main/java/org/jboss/wsf/common: addressing and 1 other directory. Date: Fri, 08 Apr 2011 11:48:56 -0400 Message-ID: <201104081548.p38FmuYq028636@svn01.web.mwc.hst.phx2.redhat.com> --===============4892196821893878532== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: alessio.soldano(a)jboss.com Date: 2011-04-08 11:48:56 -0400 (Fri, 08 Apr 2011) New Revision: 14041 Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/Addr= essingConstants.java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP.= java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAPB= uilder.java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAPB= uilderFactory.java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAPC= onstants.java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAPE= ndpoint.java api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAPR= elatesTo.java Log: Adding addressing api Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= AddressingConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/Add= ressingConstants.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/Add= ressingConstants.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,272 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2010, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import javax.xml.namespace.QName; + +/** + * TODO: see javax.xml.ws.addressing - merge it properly + * Addressing constants. + * + * @author Richard Opalka + */ +public final class AddressingConstants +{ + /** + * Constructor. + */ + private AddressingConstants() + { + // forbidden inheritance + } + + /** + * WSA constants. + */ + public static final class Core + { + /** + * Constructor. + */ + private Core() + { + // forbidden inheritance + } + + // WSA namespace + public static final String NS =3D "http://www.w3.org/2005/08/address= ing"; + + // WSA prefix + public static final String NS_PREFIX =3D "wsa"; + + public static final class Elements + { + /** + * Constructor. + */ + private Elements() + { + // forbidden inheritance + } + + // WSA 'EndpointReference' element + public static final String ENDPOINTREFERENCE =3D "EndpointReferen= ce"; = + public static final QName ENDPOINTREFERENCE_QNAME =3D new QName(N= S, ENDPOINTREFERENCE, NS_PREFIX); = + + // WSA 'ReferenceParameters' element + public static final String REFERENCEPARAMETERS =3D "ReferencePara= meters"; = + public static final QName REFERENCEPARAMETERS_QNAME =3D new QName= (NS, REFERENCEPARAMETERS, NS_PREFIX); = + + // WSA 'Metadata' element + public static final String METADATA =3D "Metadata"; = + public static final QName METADATA_QNAME =3D new QName(NS, METADA= TA, NS_PREFIX); = + + // WSA 'Address' element + public static final String ADDRESS =3D "Address"; = + public static final QName ADDRESS_QNAME =3D new QName(NS, ADDRESS= , NS_PREFIX); = + + // WSA 'MessageID' element + public static final String MESSAGEID =3D "MessageID"; = + public static final QName MESSAGEID_QNAME =3D new QName(NS, MESSA= GEID, NS_PREFIX); = + + // WSA 'RelatesTo' element + public static final String RELATESTO =3D "RelatesTo"; = + public static final QName RELATESTO_QNAME =3D new QName(NS, RELAT= ESTO, NS_PREFIX); = + + // WSA 'ReplyTo' element + public static final String REPLYTO =3D "ReplyTo"; = + public static final QName REPLYTO_QNAME =3D new QName(NS, REPLYTO= , NS_PREFIX); = + + // WSA 'From' element + public static final String FROM =3D "From"; = + public static final QName FROM_QNAME =3D new QName(NS, FROM, NS_P= REFIX); = + + // WSA 'FaultTo' element + public static final String FAULTTO =3D "FaultTo"; = + public static final QName FAULTTO_QNAME =3D new QName(NS, FAULTTO= , NS_PREFIX); = + + // WSA 'To' element + public static final String TO =3D "To"; = + public static final QName TO_QNAME =3D new QName(NS, TO, NS_PREFI= X); = + + // WSA 'Action' element + public static final String ACTION =3D "Action"; = + public static final QName ACTION_QNAME =3D new QName(NS, ACTION, = NS_PREFIX); = + + // WSA 'RetryAfter' element + public static final String RETRYAFTER =3D "RetryAfter"; = + public static final QName RETRYAFTER_QNAME =3D new QName(NS, RETR= YAFTER, NS_PREFIX); = + + // WSA 'ProblemHeaderQName' element + public static final String PROBLEMHEADERQNAME =3D "ProblemHeaderQ= Name"; = + public static final QName PROBLEMHEADERQNAME_QNAME =3D new QName(= NS, PROBLEMHEADERQNAME, NS_PREFIX); = + + // WSA 'ProblemIRI' element + public static final String PROBLEMIRI =3D "ProblemIRI"; = + public static final QName PROBLEMIRI_QNAME =3D new QName(NS, PROB= LEMIRI, NS_PREFIX); = + + // WSA 'ProblemAction' element + public static final String PROBLEMACTION =3D "ProblemAction"; = + public static final QName PROBLEMACTION_QNAME =3D new QName(NS, P= ROBLEMACTION, NS_PREFIX); = + + // WSA 'SoapAction' element + public static final String SOAPACTION =3D "SoapAction"; = + public static final QName SOAPACTION_QNAME =3D new QName(NS, SOAP= ACTION, NS_PREFIX); + } + + public static final class Attributes + { + /** + * Constructor. + */ + private Attributes() + { + // forbidden inheritance + } + + // WSA 'RelationshipType' attribute + public static final String RELATIONSHIPTYPE =3D "RelationshipType= "; = + public static final QName RELATIONSHIPTYPE_QNAME =3D new QName(NS= , RELATIONSHIPTYPE, NS_PREFIX); = + + // WSA 'IsReferenceParameter' attribute + public static final String ISREFERENCEPARAMETER =3D "IsReferenceP= arameter"; = + public static final QName ISREFERENCEPARAMETER_QNAME =3D new QNam= e(NS, ISREFERENCEPARAMETER, NS_PREFIX); = + + } + + public static final class Faults + { + /** + * Constructor. + */ + private Faults() + { + // forbidden inheritance + } + + // WSA 'InvalidAddressingHeader' fault + public static final QName INVALIDADDRESSINGHEADER_QNAME =3D new Q= Name(NS, "InvalidAddressingHeader", NS_PREFIX); = + + // WSA 'InvalidAddress' fault + public static final QName INVALIDADDRESS_QNAME =3D new QName(NS, = "InvalidAddress", NS_PREFIX); = + + // WSA 'InvalidEPR' fault + public static final QName INVALIDEPR_QNAME =3D new QName(NS, "Inv= alidEPR", NS_PREFIX); = + + // WSA 'InvalidCardinality' fault + public static final QName INVALIDCARDINALITY_QNAME =3D new QName(= NS, "InvalidCardinality", NS_PREFIX); = + + // WSA 'MissingAddressInEPR' fault + public static final QName MISSINGADDRESSINEPR_QNAME =3D new QName= (NS, "MissingAddressInEPR", NS_PREFIX); = + + // WSA 'DuplicateMessageID' fault + public static final QName DUPLICATEMESSAGEID_QNAME =3D new QName(= NS, "DuplicateMessageID", NS_PREFIX); = + + // WSA 'ActionMismatch' fault + public static final QName ACTIONMISMATCH_QNAME =3D new QName(NS, = "ActionMismatch", NS_PREFIX); = + + // WSA 'MessageAddressingHeaderRequired' fault + public static final QName MESSAGEADDRESSINGHEADERREQUIRED_QNAME = =3D new QName(NS, "MessageAddressingHeaderRequired", NS_PREFIX); = + + // WSA 'DestinationUnreachable' fault + public static final QName DESTINATIONUNREACHABLE_QNAME =3D new QN= ame(NS, "DestinationUnreachable", NS_PREFIX); = + + // WSA 'ActionNotSupported' fault + public static final QName ACTIONNOTSUPPORTED_QNAME =3D new QName(= NS, "ActionNotSupported", NS_PREFIX); = + + // WSA 'EndpointUnavailable' fault + public static final QName ENDPOINTUNAVAILABLE_QNAME =3D new QName= (NS, "EndpointUnavailable", NS_PREFIX); + } + } + + /** + * WSAM c= onstants. + */ + public static final class Metadata + { + /** + * Constructor. + */ + private Metadata() + { + // forbidden inheritance + } + + // WSAM namespace + public static final String NS =3D "http://www.w3.org/2007/05/address= ing/metadata"; + + // WSAM prefix + public static final String NS_PREFIX =3D "wsam"; + + public static final class Elements + { + /** + * Constructor. + */ + private Elements() + { + // forbidden inheritance + } + + // WSAM 'ServiceName' element + public static final String SERVICENAME =3D "ServiceName"; + public static final QName SERVICENAME_QNAME =3D new QName(NS, SER= VICENAME, NS_PREFIX); + + // WSAM 'InterfaceName' element + public static final String INTERFACENAME =3D "InterfaceName"; + public static final QName INTERFACENAME_QNAME =3D new QName(NS, I= NTERFACENAME, NS_PREFIX); + + // WSAM 'Addressing' element + public static final String ADDRESSING =3D "Addressing"; = + public static final QName ADDRESSING_QNAME =3D new QName(NS, ADDR= ESSING, NS_PREFIX); = + + // WSAM 'AnonymousResponses' element + public static final String ANONYMOUSRESPONSES =3D "AnonymousRespo= nses"; = + public static final QName ANONYMOUSRESPONSES_QNAME =3D new QName(= NS, ANONYMOUSRESPONSES, NS_PREFIX); = + + // WSAM 'NonAnonymousResponses' element + public static final String NONANONYMOUSRESPONSES =3D "NonAnonymou= sResponses"; = + public static final QName NONANONYMOUSRESPONSES_QNAME =3D new QNa= me(NS, NONANONYMOUSRESPONSES, NS_PREFIX); = + } + + public static final class Attributes + { + /** + * Constructor. + */ + private Attributes() + { + // forbidden inheritance + } + + // WSAM 'EndpointName' attribute + public static final String ENDPOINTNAME =3D "EndpointName"; + public static final QName ENDPOINTNAME_QNAME =3D new QName(NS, EN= DPOINTNAME, NS_PREFIX); + + // WSAM 'Action' attribute + public static final String ACTION =3D "Action"; + public static final QName ACTION_QNAME =3D new QName(NS, ACTION, = NS_PREFIX); + + } + } + +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAP.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= .java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= .java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,78 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import java.util.List; +import java.util.Map; + +import org.w3c.dom.Element; + +/** + * Message Addressing Properties is a wrapper for the stack-specific JSR-2= 61 addressing properties + * classes implemented by JBossWS Native and CXF. It is used to localize d= ependence upon the WS + * stack. + * = + * @author Andrew Dinn (adinn(a)redhat.com) + * @author alessio.soldano(a)jboss.com + * = + */ +public interface MAP +{ + public String getTo(); + + public MAPEndpoint getFrom(); + + public String getMessageID(); + + public String getAction(); + + public MAPEndpoint getFaultTo(); + + public MAPEndpoint getReplyTo(); + + public MAPRelatesTo getRelatesTo(); + + public void setTo(String address); + + public void setFrom(MAPEndpoint epref); + + public void setMessageID(String messageID); + + public void setAction(String action); + + public void setReplyTo(MAPEndpoint epref); + + public void setFaultTo(MAPEndpoint epref); + + public void setRelatesTo(MAPRelatesTo relatesTo); + + public void addReferenceParameter(Element refParam); + = + public List getReferenceParameters(); + + public void initializeAsDestination(MAPEndpoint epref); + + public void installOutboundMapOnServerSide(Map requestC= ontext, MAP map); + = + public void installOutboundMapOnClientSide(Map requestC= ontext, MAP map); + +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAPBuilder.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Builder.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Builder.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,60 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import java.util.Map; + +import javax.xml.namespace.QName; +import javax.xml.ws.handler.MessageContext; + +/** + * MAPBuilder is a helper used to create objects used with class MAP. + * = + * @author Andrew Dinn (adinn(a)redhat.com) + * @author alessio.soldano(a)jboss.com + * = + */ +public interface MAPBuilder +{ + public MAP newMap(); + + /** + * retrieve the inbound server message address properties attached to a= message context + * @param ctx the server message context + * @return + */ + public MAP inboundMap(Map ctx); + + /** + * retrieve the outbound client message address properties attached to = a message request map + * @param ctx the client request properties map + * @return + */ + public MAP outboundMap(Map ctx); + + public MAPConstants newConstants(); + + public MAPEndpoint newEndpoint(String address); + + public MAPRelatesTo newRelatesTo(String id, QName type); + +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAPBuilderFactory.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= BuilderFactory.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= BuilderFactory.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,144 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2011, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import java.security.AccessController; +import java.security.PrivilegedAction; + +import org.jboss.logging.Logger; +import org.jboss.wsf.spi.util.ServiceLoader; + +/** + * Factory for MAPBuilder; to be used to get an instance of the proper MAP= Builder + * implementation which depends on the jbossws stack in use. + * = + * @author alessio.soldano(a)jboss.com + * @since 25-May-2009 + * + */ +public abstract class MAPBuilderFactory +{ + private static final String CLASSLOADER_PROVIDER =3D "org.jboss.wsf.spi= .classloading.ClassLoaderProvider"; + private static final String CLASSLOADER_PROVIDER_GET_METHOD =3D "getDef= aultProvider"; + private static final String CLASSLOADER_PROVIDER_GET_CL_METHOD =3D "get= ServerIntegrationClassLoader"; + private static final String JBOSSWS_SPI_MODULE =3D "org.jboss.ws.spi"; + = + /** + * Get the proper MAPBuilderFactory instance according to stack in use; + * this uses the ws server integration modular classloader if available + * (alternatively the current thread context classloader is used) for + * looking up the factory name. = + * = + * @return + */ + public static MAPBuilderFactory getInstance() + { + return getInstance(getServerIntegrationClassLoader()); + } + = + /** + * The same as getInstance() except the provided ClassLoader instance + * is used to lookup the factory name. + * = + * @param loader + * @return + */ + public static MAPBuilderFactory getInstance(ClassLoader loader) + { + return (MAPBuilderFactory)ServiceLoader.loadService(MAPBuilderFactor= y.class.getName(), null, loader); + } + = + public abstract MAPBuilder getBuilderInstance(); + = + private static ClassLoader getServerIntegrationClassLoader() + { + ClassLoader cl =3D null; + try + { + //if jboss-modules is available (i.e. AS7 in-container) we get th= e org.jboss.ws.spi:main module first, + //the we use the ClassLoaderProvider facilities for getting the i= ntegration classloader. + //The reason for going this way is in not exposing the ClassLoade= rProvider to the public API, + //while MAPBuilderFactory needs to work automatically (no need to= specify the loader to use) + final ClassLoader spiLoader =3D getSPIClassLoader(); + if (spiLoader !=3D null) + { + final Class clazz =3D spiLoader.loadClass(CLASSLOADER_PROVI= DER); + final Object clProvider =3D clazz.getMethod(CLASSLOADER_PROVID= ER_GET_METHOD).invoke(null); + cl =3D (ClassLoader)clazz.getMethod(CLASSLOADER_PROVIDER_GET_C= L_METHOD).invoke(clProvider); + } + } + catch (RuntimeException re) + { + throw re; + } + catch (Exception e) + { + throw new RuntimeException(e); + } + return (cl !=3D null) ? cl : getContextClassLoader(); + } + = + private static ClassLoader getSPIClassLoader() + { + ClassLoader moduleClassLoader =3D null; + try { + Class moduleClass =3D Class.forName("org.jboss.modules.Module"= ); + Class moduleIdentifierClass =3D Class.forName("org.jboss.modul= es.ModuleIdentifier"); + Class moduleLoaderClass =3D Class.forName("org.jboss.modules.M= oduleLoader"); + Object moduleLoader =3D moduleClass.getMethod("getBootModuleLoade= r").invoke(null); + Object moduleIdentifier =3D moduleIdentifierClass.getMethod("crea= te", String.class).invoke(null, JBOSSWS_SPI_MODULE); + Object module =3D moduleLoaderClass.getMethod("loadModule", modul= eIdentifierClass).invoke(moduleLoader, moduleIdentifier); + moduleClassLoader =3D (ClassLoader)moduleClass.getMethod("getClas= sLoader").invoke(module); + } catch (Exception e) { + //ignore, JBoss Modules might not be available at all + Logger log =3D Logger.getLogger(MAPBuilderFactory.class); + if (log.isTraceEnabled()) + { + log.trace("Could not get " + JBOSSWS_SPI_MODULE + " module cla= ssloader: ", e); + } + } + return moduleClassLoader; + } + = + /** + * Get context classloader. + * = + * @return the current context classloader + */ + static ClassLoader getContextClassLoader() + { + SecurityManager sm =3D System.getSecurityManager(); + if (sm =3D=3D null) + { + return Thread.currentThread().getContextClassLoader(); + } + else + { + return AccessController.doPrivileged(new PrivilegedAction() { + public ClassLoader run() + { + return Thread.currentThread().getContextClassLoader(); + } + }); + } + } +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAPConstants.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Constants.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Constants.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,47 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +/** + * MAPConstants is a wrapper which works with class MAP + * = + * @author Andrew Dinn (adinn(a)redhat.com) + * @author alessio.soldano(a)jboss.com + * = + */ +public interface MAPConstants +{ + public String getAnonymousURI(); + = + public String getNoneURI(); + + public String getClientAddressingProperties(); + + public String getClientAddressingPropertiesInbound(); + + public String getClientAddressingPropertiesOutbound(); + + public String getServerAddressingPropertiesInbound(); + + public String getServerAddressingPropertiesOutbound(); + +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAPEndpoint.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Endpoint.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= Endpoint.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,43 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import java.util.List; + +import org.w3c.dom.Element; + +/** + * MAPEndpoint is a wrapper which works with class MAP. + * = + * @author Andrew Dinn (adinn(a)redhat.com) + * @author alessio.soldano(a)jboss.com + * = + */ +public interface MAPEndpoint +{ + public String getAddress(); + + public void addReferenceParameter(Element element); + = + public List getReferenceParameters(); + +} Added: api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/= MAPRelatesTo.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= RelatesTo.java (rev 0) +++ api/branches/asoldano/src/main/java/org/jboss/wsf/common/addressing/MAP= RelatesTo.java 2011-04-08 15:48:56 UTC (rev 14041) @@ -0,0 +1,41 @@ +/* + * JBoss, Home of Professional Open Source. + * Copyright 2006, Red Hat Middleware LLC, and individual contributors + * as indicated by the @author tags. See the copyright.txt file in the + * distribution for a full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + */ +package org.jboss.wsf.common.addressing; + +import javax.xml.namespace.QName; + +/** + * MAPRelationship is a wrapper which works with class MAP. + * = + * @author Andrew Dinn (adinn(a)redhat.com) + * @author alessio.soldano(a)jboss.com + * = + */ +public interface MAPRelatesTo +{ + public String getRelatesTo(); + + public QName getType(); + + public void setType(QName type); + +} --===============4892196821893878532==--