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

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


         {
            setter = getSetterWithSpecifiedName( "set" + javaPropName + "Array" );
         }
         catch ( NoSuchMethodException nsme2 )
         {
            throw new InvalidResourcePropertyQNameFaultException( "Could not find property named " + propQName );
         }
      }

      return setter;
   }
View Full Code Here


   private SchemaProperty getPropertySchemaProperty( QName propQName )
   throws InvalidResourcePropertyQNameFaultException
   {
      if ( propQName == null )
      {
         throw new InvalidResourcePropertyQNameFaultException( "Property name cannot be null." );
      }

      SchemaProperty elemSchemaProp = m_resourceProps.schemaType(  ).getElementProperty( propQName );
      if ( elemSchemaProp == null )
      {
         throw new InvalidResourcePropertyQNameFaultException( "Invalid property name: " + propQName );
      }

      return elemSchemaProp;
   }
View Full Code Here

         {
            setter = getSetterWithSpecifiedName( "set" + javaPropName );
         }
         catch ( NoSuchMethodException nsme2 )
         {
            throw new InvalidResourcePropertyQNameFaultException( "Could not find property named " + propQName );
         }
      }

      return setter;
   }
View Full Code Here

   private void checkPropertyQNamesAreValid( SOAPElement[] propElems )
   throws InvalidResourcePropertyQNameFaultException
   {
      if ( propElems[0] == null )
      {
         throw new InvalidResourcePropertyQNameFaultException( "You cannot pass a null property." );
      }

      Name firstElemName = propElems[0].getElementName(  );
      checkPropertyQNameIsValid( NameUtils.toQName( firstElemName ) );
      for ( int i = 1; i < propElems.length; i++ )
      {
         if ( propElems[i] == null )
         {
            throw new SetResourcePropertyRequestFailedFaultException( "You cannot pass a null property." );
         }

         if ( !firstElemName.equals( propElems[i].getElementName(  ) ) )
         {
            throw new InvalidResourcePropertyQNameFaultException( "All property elements in the request must have identical QNames." );
         }
      }
   }
View Full Code Here

         }
      }
      catch ( NoSuchMethodException nsme )
      {
         nsme.printStackTrace(  );
         throw new InvalidResourcePropertyQNameFaultException( "Could not find Array property named " + propQName );
      }
      catch ( Exception e )
      {
         e.printStackTrace(  );
         throw e;
View Full Code Here

         {
            setter = getSetterWithSpecifiedName( setterName + "Array" );
         }
         catch ( NoSuchMethodException nsme2 )
         {
            throw new InvalidResourcePropertyQNameFaultException( "Could not find property named " + propQName );
         }
      }

      Class propType =
         ( setter.getParameterTypes(  )[0] != null ) ? setter.getParameterTypes(  )[0].getComponentType(  )
View Full Code Here

         {
            return;
         }
         else
         {
            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), nameOfPropToBeDeleted );
         }
      }

      throwFaultIfPropertyIsReadOnly( prop );
      throwFaultIfDeletionViolatesSchema( prop );
View Full Code Here

      ResourceProperty prop = getProperties(  ).get( propName );
      if ( prop == null )
      {
         if ( !getProperties(  ).getMetaData(  ).isOpenContent(  ) )
         {
            throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), propName );
         }
      }

      return prop;
   }
View Full Code Here

      }

      ResourceProperty prop = getProperties(  ).get( propName );
      if ( prop == null )
      {
         throw new InvalidResourcePropertyQNameFaultException( getNamespaceSet(  ), propName );
      }

      refreshProperty( prop );
      return prop;
   }
View Full Code Here

         {
            return;
         }
         else
         {
            throw new InvalidResourcePropertyQNameFaultException( getResource(  ).getNamespaceSet(  ),
                                                                  nameOfPropToBeDeleted );
         }
      }

      throwFaultIfPropertyIsReadOnly( prop );
View Full Code Here

TOP

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

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.