Package org.apache.ws.resource.properties.faults

Examples of org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException


            prop.add( newPropElems[i] );
         }
      }
      catch ( MetaDataViolationException mdve )
      {
         throw new InvalidSetResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                             mdve );
      }

      Object[] newValue = getValue( prop );
      firePropChangeEvents( prop, oldValue, newValue );
View Full Code Here


   private void throwFaultIfDeletionViolatesSchema( ResourceProperty prop )
   {
      if ( prop.getMetaData(  ).getMinOccurs(  ) != 0 )
      {
         throw new InvalidSetResourcePropertiesRequestContentFaultException( getResource(  ).getNamespaceSet(  ),
                                                                             MSG.getMessage(
                                                                                             Keys.ERROR_PROPERTY_DELETE_VIOLATES_SCHEMA,
                                                                                             prop.getMetaData(  )
                                                                                                 .getName(  ) ) );
      }
View Full Code Here

            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      fault.getFaultString(  ) );
         }
         catch ( InvalidInsertResourcePropertiesRequestContentFaultException fault )
         {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                fault.getFaultString(  ) );
         }
      }

      DeleteType[] deleteElems = requestElem.getDeleteArray(  );
      for ( int i = 0; i < deleteElems.length; i++ )
      {
         try
         {
            deleteResourceProperty( deleteElems[i].getResourceProperty(  ) );
         }
         catch ( DeleteResourcePropertyRequestFailedFaultException fault )
         {
            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      fault.getFaultString(  ) );
         }
      }

      UpdateType[] updateElems = requestElem.getUpdateArray(  );
      for ( int i = 0; i < updateElems.length; i++ )
      {
         XmlObject[] newPropElems = XmlBeanUtils.getChildElements( updateElems[i] );
         try
         {
            updateResourceProperty( newPropElems );
         }
         catch ( UpdateResourcePropertyRequestFailedFaultException fault )
         {
            throw new SetResourcePropertyRequestFailedFaultException( getNamespaceSet(  ),
                                                                      fault.getFaultString(  ) );
         }
         catch ( InvalidUpdateResourcePropertiesRequestContentFaultException fault )
         {
            throw new InvalidSetResourcePropertiesRequestContentFaultException( getNamespaceSet(  ),
                                                                                fault.getFaultString(  ) );
         }
      }

      return responseDoc;
View Full Code Here

TOP

Related Classes of org.apache.ws.resource.properties.faults.InvalidSetResourcePropertiesRequestContentFaultException

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.