Methods Summary |
---|
public java.lang.String | encodeBody()Encode in canonical form.
StringBuffer retval = new StringBuffer();
if (eventType != null) {
retval.append(eventType);
// retval.append(Separators.SP + eventType + Separators.SP);
}
retval.append(encodeWithSep());
return retval.toString();
|
public java.lang.String | getEventId()Gets the id of the EventHeader. This method may return null if the
"eventId" is not set.
return getParameter(ID);
|
public java.lang.String | getEventType()Gets the eventType of the EventHeader.
return eventType;
|
public java.lang.Object | getValue()Gets the event header value.
return this.eventType;
|
public boolean | match(gov.nist.siplite.header.EventHeader matchTarget)Return true if the given event header matches the supplied one.
if (matchTarget.eventType == null && this.eventType != null)
return false;
else if (matchTarget.eventType != null && this.eventType == null)
return false;
else if (this.eventType == null && matchTarget.eventType == null)
return false;
else if (getEventId() == null && matchTarget.getEventId() != null)
return false;
else if (getEventId() != null && matchTarget.getEventId() == null)
return false;
return equalsIgnoreCase(matchTarget.eventType, this.eventType) &&
((this.getEventId() == matchTarget.getEventId()) ||
equalsIgnoreCase(this.getEventId(), matchTarget.getEventId()));
|
public void | setEventId(java.lang.String eventId)Sets the id to the newly supplied eventId string.
if (eventId == null)
throw new NullPointerException("the eventId parameter is null");
setParameter(ID, eventId);
|
public void | setEventType(java.lang.String eventType)Sets the eventType to the newly supplied eventType string.
if (eventType == null)
throw new NullPointerException(" the eventType is null");
this.eventType = eventType;
|