Package org.apache.muse.ws.resource.sg.faults

Examples of org.apache.muse.ws.resource.sg.faults.AddRefusedFault


       
        //
        // make sure this is a valid member of the group
        //
        if (!isMatch(epr))
            throw new AddRefusedFault(_MESSAGES.get("ContentCreationFailed"));

        ResourceManager manager = sg.getResourceManager();
        String endpoint = getEntryContextPath();
        WsResource resource = null;
       
View Full Code Here


                persistence.resourceAdded(entry.getEndpointReference(), entry);
        }
       
        catch (SoapFault fault)
        {
            throw new AddRefusedFault(fault);
        }
    }
View Full Code Here

       
        //
        // make sure this is a valid member of the group
        //
        if (!isMatch(epr))
            throw new AddRefusedFault(_MESSAGES.get("ContentCreationFailed"));

        ResourceManager manager = sg.getResourceManager();
        String endpoint = getEntryContextPath();
        WsResource resource = null;
       
        try
        {
            resource = (WsResource)manager.createResource(endpoint);
        }
       
        catch (SoapFault error)
        {
            throw new ResourceInitializationFault(error);
        }
       
        //
        // make sure the entry resource can process termination time, if
        // one exists. if it can't, the request was invalid.
        //
        // NOTE: we do NOT shutdown() the resource because it has not
        //       been initialize()d yet.       
        //
        if (termination != null && !resource.hasCapability(WsrlConstants.SCHEDULED_TERMINATION_URI))
        {
            Object[] filler = { endpoint, WsrlConstants.SCHEDULED_TERMINATION_URI };
            throw new AddRefusedFault(_MESSAGES.get("NoWSRL", filler));
        }
       
        //
        // set the sg entry fields before initializing the entry resource
        //
View Full Code Here

                persistence.resourceAdded(entry.getEndpointReference(), entry);
        }
       
        catch (SoapFault fault)
        {
            throw new AddRefusedFault(fault);
        }
    }
View Full Code Here

       
        //
        // make sure this is a valid member of the group
        //
        if (!isMatch(epr))
            throw new AddRefusedFault(_MESSAGES.get("ContentCreationFailed"));

        ResourceManager manager = sg.getResourceManager();
        String endpoint = getEntryContextPath();
        WsResource resource = null;
       
View Full Code Here

                persistence.resourceAdded(entry.getEndpointReference(), entry);
        }
       
        catch (SoapFault fault)
        {
            throw new AddRefusedFault(fault);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.resource.sg.faults.AddRefusedFault

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.