Java 8 StringRefAddr - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 StringRefAddr class.

This code example shows how to use the following methods:
       StringRefAddr addr =  (StringRefAddr)get("user");
       if (addr != null)
       { 
         throw new RuntimeException ("user already set on SessionReference, can't be changed");
       } 
       add(new StringRefAddr("user", user));
    } 
 
    public void setPassword (String password)
    { 
        StringRefAddr addr = (StringRefAddr)get("pwd");
        if (addr != null)
            throw new RuntimeException ("password already set on SessionReference, can't be changed");
        add(new StringRefAddr ("pwd", password));
    } 
 
    public void setProperties (Properties properties)
    { 
        Iterator entries = properties.entrySet().iterator();
        while (entries.hasNext())
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
        if (serviceQname[0] != null) {
            refAddr = new StringRefAddr(SERVICE_NAMESPACE, serviceQname[0]);
            add(refAddr);
        } 
        if (serviceQname[1] != null) {
            refAddr = new StringRefAddr(SERVICE_LOCAL_PART, serviceQname[1]);
            add(refAddr);
        } 
        if (wsdl != null) {
            refAddr = new StringRefAddr(WSDL, wsdl);
            add(refAddr);
        } 
        if (jaxrpcmapping != null) {
            refAddr = new StringRefAddr(JAXRPCMAPPING, jaxrpcmapping);
            add(refAddr);
        } 
    } 
 
 
    // ----------------------------------------------------- Instance Variables 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
	 */ 
	@Override 
	public Reference getReference() throws NamingException {
		return new Reference(
				SessionFactoryStub.class.getName(),
				new StringRefAddr("uuid", uuid),
				SessionFactoryRegistry.ObjectFactoryImpl.class.getName(),
				null 
		); 
	} 
 
	public ClassMetadata getClassMetadata(Class persistentClass) throws HibernateException {
		return getImpl().getClassMetadata(persistentClass);
	} 
 
	public ClassMetadata getClassMetadata(String entityName)
	throws HibernateException { 
		return getImpl().getClassMetadata(entityName);
	} 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    public HandlerRef(String refname, String handlerClass,
                    String factory, String factoryLocation) {
        super(refname, factory, factoryLocation);
        StringRefAddr refAddr = null;
        if (refname != null) {
            refAddr = new StringRefAddr(HANDLER_NAME, refname);
            add(refAddr);
        } 
        if (handlerClass != null) {
            refAddr = new StringRefAddr(HANDLER_CLASS, handlerClass);
            add(refAddr);
        } 
    } 
 
 
    // ----------------------------------------------------- Instance Variables 
 
 
    // ------------------------------------------------------ Reference Methods 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    private static final String JCR_REPOSITORY_NAME = "Test Repository";
 
    private JndiRepositoryFactory factory = new JndiRepositoryFactory();
    private Reference reference = new Reference(JndiRepositoryFactory.class.getName());
    private RefAddr configFile;
    private RefAddr repositoryName = new StringRefAddr("repositoryName", JCR_REPOSITORY_NAME);
 
    @Before 
    public void beforeEach() { 
        JaasTestUtil.initJaas("security/jaas.conf.xml"); 
    } 
 
    @After 
    public void afterEach() throws Exception {
        JndiRepositoryFactory.shutdown().get(); 
    } 
 
    @Test
    public void shouldFindConfigFileOnClasspath() throws Exception {
        configFile = new StringRefAddr("configFile", "tck/default/repo-config.json");
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    } 
 
    @Override 
    public Reference getReference() throws NamingException {
        Reference reference = new Reference(getClass().getName(),
                new StringRefAddr(JNDI_DESTINATION_NAME, _name),
                NevadoReferencableFactory.class.getName(), null);
        return reference;
    } 
 
    @Override 
    public String toString() {
        return _name;
    } 
 
    @Override 
    public boolean equals(Object o) { 
        if (this == o) return true;
        if (o == null || 
                (!(this instanceof NevadoTopic && o instanceof NevadoTopic)
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
    public HandlerRef(String refname, String handlerClass,
                    String factory, String factoryLocation) {
        super(refname, factory, factoryLocation);
        StringRefAddr refAddr = null;
        if (refname != null) {
            refAddr = new StringRefAddr(HANDLER_NAME, refname);
            add(refAddr);
        } 
        if (handlerClass != null) {
            refAddr = new StringRefAddr(HANDLER_CLASS, handlerClass);
            add(refAddr);
        } 
    } 
 
 
    // ----------------------------------------------------- Instance Variables 
 
 
    // ------------------------------------------------------ Reference Methods 
 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
                       String scope, String auth, boolean singleton,
                       String factory, String factoryLocation) {
        super(resourceClass, factory, factoryLocation);
        StringRefAddr refAddr = null;
        if (description != null) {
            refAddr = new StringRefAddr(DESCRIPTION, description);
            add(refAddr);
        } 
        if (scope != null) {
            refAddr = new StringRefAddr(SCOPE, scope);
            add(refAddr);
        } 
        if (auth != null) {
            refAddr = new StringRefAddr(AUTH, auth);
            add(refAddr);
        } 
        // singleton is a boolean so slightly different handling 
        refAddr = new StringRefAddr(SINGLETON, Boolean.toString(singleton));
        add(refAddr);
    } 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
        if (remote != null) {
            refAddr = new StringRefAddr(REMOTE, remote);
            add(refAddr);
        } 
        if (link != null) {
            refAddr = new StringRefAddr(LINK, link);
            add(refAddr);
        } 
    } 
 
 
    // ----------------------------------------------------- Instance Variables 
 
 
    // -------------------------------------------------------- RefAddr Methods 
 
 
    // ------------------------------------------------------ Reference Methods 
 
 
4
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:
        if (remote != null) {
            refAddr = new StringRefAddr(REMOTE, remote);
            add(refAddr);
        } 
        if (link != null) {
            refAddr = new StringRefAddr(LINK, link);
            add(refAddr);
        } 
    } 
 
 
    // ----------------------------------------------------- Instance Variables 
 
 
    // -------------------------------------------------------- RefAddr Methods 
 
 
    // ------------------------------------------------------ Reference Methods 
 
 
5
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Java 8 StringRefAddr Methods: