Creates a new target.
@param targetContent non-null target properties
@return the ID of the newly created target
@throws TargetWsException if the creation failed
170593
public String createTarget( String targetContent ) throws TargetWsException {

		this.logger.finer( "Creating a new target."  );

		WebResource path = this.resource.path( UrlConstants.TARGETS );
		ClientResponse response = this.wsClient.createBuilder( path ).post( ClientResponse.class, targetContent );
		handleResponse( response );

		return response.getEntity( String.class );
	}
1072161
static AzureProperties buildProperties( Map<String,String> targetProperties ) throws TargetException {

		String[] properties = {
				AzureConstants.AZURE_SUBSCRIPTION_ID,
				AzureConstants.AZURE_KEY_STORE_FILE,
				AzureConstants.AZURE_KEY_STORE_PASSWORD,
				AzureConstants.AZURE_CREATE_CLOUD_SERVICE_TEMPLATE,
				AzureConstants.AZURE_CREATE_DEPLOYMENT_TEMPLATE,
				AzureConstants.AZURE_LOCATION,
				AzureConstants.AZURE_VM_SIZE,
				AzureConstants.AZURE_VM_TEMPLATE
		};

		for( String property : properties ) {
			if( Utils.isEmptyOrWhitespaces( targetProperties.get( property )))
				throw new TargetException( "The value for " + property + " cannot be null or empty." );
		}

		// Create a bean
		AzureProperties azureProperties = new AzureProperties();

		String s = targetProperties.get( AzureConstants.AZURE_SUBSCRIPTION_ID );
		azureProperties.setSubscriptionId( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_KEY_STORE_FILE );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_KEY_STORE_PASSWORD );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_CREATE_CLOUD_SERVICE_TEMPLATE );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_CREATE_DEPLOYMENT_TEMPLATE );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_LOCATION );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_VM_SIZE );
		azureProperties.setKeyStoreFile( s.trim());

		s = targetProperties.get( AzureConstants.AZURE_VM_TEMPLATE );
		azureProperties.setKeyStoreFile( s.trim());

		return azureProperties;
	}
573659
public <T> void newInstance(Local<T> target, MethodId<T, Void> constructor, Local<?>... args) {
        if (target == null) {
            throw new IllegalArgumentException();
        }
        addInstruction(new ThrowingCstInsn(Rops.NEW_INSTANCE, sourcePosition,
                RegisterSpecList.EMPTY, catches, constructor.declaringType.constant));
        moveResult(target, true);
        invokeDirect(constructor, null, target, args);
    }
419396
protected WebClient instantiateWebClient(String targetUrl) {
		WebClient webClient = WebClient.create(targetUrl).type("application/x-www-form-urlencoded").accept(MediaType.TEXT_PLAIN).accept(MediaType.APPLICATION_JSON);
		webClient = Header.setHeader(webClient);

		HTTPConduit conduit = WebClient.getConfig(webClient).getHttpConduit();
		TLSClientParameters params = conduit.getTlsClientParameters();
		if (params == null) {
			params = new TLSClientParameters();
			conduit.setTlsClientParameters(params);
		}
		params.setTrustManagers(new TrustManager[] { new DumbX509TrustManager() });
		params.setDisableCNCheck(true);

		HTTPClientPolicy policy = new HTTPClientPolicy();
		policy.setConnectionTimeout(600000);
		policy.setReceiveTimeout(600000);
		policy.setAllowChunking(false);
		conduit.setClient(policy);

		return webClient;
	}
662839
public static boolean createFolder(File targetFolder) {
        if (targetFolder.exists()) {
            if (targetFolder.isDirectory()) return true;
            //noinspection ResultOfMethodCallIgnored
            targetFolder.delete();
        }
        return targetFolder.mkdirs();
    }
99371
public final void addTarget(@NotNull final Target target) {
        Contract.requireArgNotNull("target", target);
        if (targets == null) {
            targets = new ArrayList<>();
        }
        targets.add(target);
    }
422467
public static File generate(String content, QrConfig config, File targetFile) {
		final BufferedImage image = generate(content, config);
		ImgUtil.write(image, targetFile);
		return targetFile;
	}
1051455
public <T> JdbcMapperBuilder<T> newBuilder(final TypeReference<T> target) {
        return newBuilder(target.getType());
    }
91063
public void setTargetName (String targetName) {
        if (targetName == null) target = null;
        target = targetServer.getTarget(targetName);
    }
116783
public <T> JdbcMapperBuilder<T> newBuilder(final Class<T> target) {
		return newBuilder((Type)target);
	}
321620
final void initInvocationTarget() throws Exception {
        Member previousTargetMember = targetMember;
        T target = getInvocationTarget();
        if (target == null) {
            remote = false;
            throw newTargetNullException();
        }

        targetMember = toTargetMember(target);
        if (targetMember != null) {
            targetAddress = targetMember.getAddress();
        } else {
            targetAddress = toTargetAddress(target);
        }
        memberListVersion = context.clusterService.getMemberListVersion();

        if (targetMember == null) {
            if (previousTargetMember != null) {
                // If a target member was found earlier but current target member is null
                // then it means a member left.
                throw new MemberLeftException(previousTargetMember);
            }
            if (!(isJoinOperation(op) || isWanReplicationOperation(op))) {
                throw new TargetNotMemberException(target, op.getPartitionId(), op.getClass().getName(), op.getServiceName());
            }
        }

        if (op instanceof TargetAware) {
            ((TargetAware) op).setTarget(targetAddress);
        }

        remote = !context.thisAddress.equals(targetAddress);
    }
913604
public final ControlAckExpected createNewControlAckExpected() throws MessageCreateFailedException {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createNewControlAckExpected");
    ControlAckExpected msg = null;
    try {
      msg = new ControlAckExpectedImpl(MfpConstants.CONSTRUCTOR_NO_OP);
    }
    catch (MessageDecodeFailedException e) {
      /* No need to FFDC this as JsMsgObject will already have done so */
      // No FFDC code needed
      throw new MessageCreateFailedException(e);
    }
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "createNewControlAckExpected");
    return msg;
  }
534339
public function setSiteTargetId(int $nb_site_target_id) : CNabuDataObject
    {
        if ($nb_site_target_id === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$nb_site_target_id")
            );
        }
        $this->setValue('nb_site_target_id', $nb_site_target_id);
        
        return $this;
    }
1112212
public void setContentTargeting(com.google.api.ads.admanager.axis.v201902.ContentTargeting contentTargeting) {
        this.contentTargeting = contentTargeting;
    }
872519
@Override
    public void setTarget(Object target) {
        if (mTarget != target) {
            final Object oldTarget = mTarget;
            mTarget = target;
            if (oldTarget != null && target != null && oldTarget.getClass() == target.getClass()) {
                return;
            }
            // New target type should cause re-initialization prior to starting
            mInitialized = false;
        }
    }
881407
public void setTargetDestination(String targetDestination) 
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "setTargetDestination", targetDestination);

    this.targetDestination = targetDestination;

    if (tc.isEntryEnabled())
      SibTr.exit(tc, "setTargetDestination");
  }
875584
public Builder link(String href, String textContent) {
       text.a(textContent).a(" : ").a(href);
       tag("a", "href='" + href + "' target='_blank'");
       html.a(textContent);
       return end();
   }