private void checkContextRegistration(ContextRegistration contextRegistration) throws MissingRequestParameterException { if (nullOrEmpty(contextRegistration.getProvidingApplication())){ throw new MissingRequestParameterException("providingApplication", "URI"); } if (contextRegistration.getEntityIdList() != null) { for(EntityId entityId: contextRegistration.getEntityIdList()) { checkEntityId(entityId); } } if (contextRegistration.getContextRegistrationAttributeList() != null) { for(ContextRegistrationAttribute attribute: contextRegistration.getContextRegistrationAttributeList()) { checkContextRegistrationAttribute(attribute); } } }
private void checkContextRegistration(ContextRegistration contextRegistration) throws MissingRequestParameterException { if (nullOrEmpty(contextRegistration.getProvidingApplication())){ throw new MissingRequestParameterException("providingApplication", "URI"); } if (contextRegistration.getEntityIdList() != null) { for(EntityId entityId: contextRegistration.getEntityIdList()) { checkEntityId(entityId); } } if (contextRegistration.getContextRegistrationAttributeList() != null) { for(ContextRegistrationAttribute attribute: contextRegistration.getContextRegistrationAttributeList()) { checkContextRegistrationAttribute(attribute); } } }