/*
Set the Message Control Classification into the message header.

Javadoc description supplied by JsApiMessage interface.
773982
public void setMessageControlClassification(String value) {
        if (value != null) {
            getHdr2().setField(JsHdr2Access.MESSAGECONTROLCLASSIFICATION_DATA, value);
        }
        else {
            getHdr2().setChoiceField(JsHdr2Access.MESSAGECONTROLCLASSIFICATION, JsHdr2Access.IS_MESSAGECONTROLCLASSIFICATION_EMPTY);
        }
    }
34599
public void setMessageStyleType(MessageStyleType messageStyleType) {
		if (messageStyleType == null) {
			icon.getElement().getStyle().setDisplay(Display.NONE);
		} else {
			icon.getElement().getStyle().setDisplay(Display.BLOCK);
			icon.setStyleName(resource.css().messageBoxIcon());
			switch (messageStyleType) {
				case HELP:
					icon.addStyleName(resource.css().messageBoxIconHelp());
					break;
				case WARN:
					icon.addStyleName(resource.css().messageBoxIconWarn());
					break;
				case ERROR:
					icon.addStyleName(resource.css().messageBoxIconError());
					break;
				default:
					icon.addStyleName(resource.css().messageBoxIconInfo());
			}
		}
	}
1030265
final void setDerivedJmsFields() {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setDerivedJmsFields");

        if (getHdr2().getChoiceField(JsHdr2Access.JMSDELIVERYMODE) == JsHdr2Access.IS_JMSDELIVERYMODE_EMPTY) {
            setJmsDeliveryMode(getDerivedJmsDeliveryMode());
        }

        if (getHdr2().getChoiceField(JsHdr2Access.JMSEXPIRATION) == JsHdr2Access.IS_JMSEXPIRATION_EMPTY) {
            setJmsExpiration(getDerivedJmsExpiration());
        }

        if (getHdr2().getChoiceField(JsHdr2Access.JMSDELIVERYTIME) == JsHdr2Access.IS_JMSDELIVERYTIME_EMPTY) {
            setJmsDeliveryTime(getDerivedJmsDeliveryTime());
        }

        if (getHdr2().getChoiceField(JsHdr2Access.JMSTYPE) == JsHdr2Access.IS_JMSTYPE_EMPTY) {
            setJmsType(getDerivedJmsType());
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setDerivedJmsFields");
    }
329877
protected final void assignCacheControlHeader(
			final HttpServletRequest request,
			final HttpServletResponse response, 
			final Object handler) {
		
		final CacheControl cacheControl = this.getCacheControl(request, response, handler);
		final String cacheControlHeader = this.createCacheControlHeader(cacheControl);
		
		if (cacheControlHeader != null) {
			response.setHeader(HEADER_CACHE_CONTROL, cacheControlHeader);
			if (useExpiresHeader) {
				response.setDateHeader(HEADER_EXPIRES, createExpiresHeader(cacheControl));
			}
		}
	}
1083618
void setMessage(MessageImpl msg) {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setMessage", msg);
    theMessage = msg;
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "setMessage");
  }
513375
public void setSystemMessageSourceUuid(SIBUuid8 value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setSystemMessageSourceUuid", value);
        // Clear the cached MessageHandle
        cachedMessageHandle = null;
        // Set the value into the message itself
        if (value != null) {
            jmo.setField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID, value.toByteArray());
        }
        else {
            jmo.setField(JsHdrAccess.SYSTEMMESSAGESOURCEUUID, null);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setSystemMessageSourceUuid");
    }
1054372
public void setCustomHeader(String[] header) {
        if (header == null) {
            throw new IllegalArgumentException("Custom header can't be null.");
        }
        customHeader = new CustomHeaderLine[header.length];
        for (int i = 0; i < header.length; i++) {
            customHeader[i] = new CustomHeaderLine(header[i]);
        }
    }
1123293
public void setupMessageDataDesc()
    {
        super.setupMessageDataDesc();
        
        for (String key: PROPERTIES)
        {
            this.addMessageFieldDesc(key, String.class, MessageFieldDesc.REQUIRED, null);
        }
    }
291851
private void setContentTypeHeader(final HttpResponse response, final URLConnection connection) {
    response.headers().set(CONTENT_TYPE, mimeTypesMap.getContentType(connection.getURL().getPath()));
  }
930115
public void setMessageText(SendableTextMessage.SendableTextMessageBuilder messageBuilder) {
        SendableTextMessage message = messageBuilder.build();
        baseMessage.getBotInstance().editMessageText(baseMessage, message.getMessage(), message.getParseMode(),
                message.isDisableWebPagePreview(), toKeyboard());
    }
674194
public void setSectionHeading(Title v) {
    if (Section_Type.featOkTst && ((Section_Type)jcasType).casFeat_sectionHeading == null)
      jcasType.jcas.throwFeatMissing("sectionHeading", "de.julielab.jules.types.Section");
    jcasType.ll_cas.ll_setRefValue(addr, ((Section_Type)jcasType).casFeatCode_sectionHeading, jcasType.ll_cas.ll_getFSRef(v));}
1062294
@Override
    public final void setJmsReplyTo(byte[] value) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(this, tc, "setJmsReplyTo", value);
        /* There is no need to take a copy because the JMS API layer will never */
        /* change the byte array passed in. */
        getHdr2().setField(JsHdr2Access.JMSREPLYTO_DATA, value);
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(this, tc, "setJmsReplyTo");
    }
299241
public static void set(Message message, ExplicitMessageEncryptionProtocol protocol) {
        if (!hasProtocol(message, protocol.namespace)) {
            message.addExtension(new ExplicitMessageEncryptionElement(protocol));
        }
    }
70563
public void setControl(Node control) {
        if (control != null) {
            this.control = control;
            this.badge = new Group();
            this.getChildren().add(control);
            this.getChildren().add(badge);

            // if the control got resized the badge must be rest
            if (control instanceof Region) {
                ((Region) control).widthProperty().addListener((o, oldVal, newVal) -> refreshBadge());
                ((Region) control).heightProperty().addListener((o, oldVal, newVal) -> refreshBadge());
            }
            text.addListener((o, oldVal, newVal) -> refreshBadge());
        }
    }
916819
@Override
	public void setHeader(final String name, final String value) {
		LOG.debug("Setting header, " + name + '=' + value);
		headers.put(name, value);
	}
1233959
public void takeClassificationReadLock()
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.entry(tc, "takeClassificationReadLock");
    
    classificationReadLock.lock();
    
    if(TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
      SibTr.exit(tc, "takeClassificationReadLock");
  }
272658
public void setMessage(String data) throws HttpMalformedHeaderException {
        clear();
        try {
            if (!this.parse(data)) {
                mMalformedHeader = true;
            }
        } catch (Exception e) {
            mMalformedHeader = true;
        }

        if (mMalformedHeader) {
            throw new HttpMalformedHeaderException();
        }

    }