| /* |
| * Copyright (c) 2020 Kentyou. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Kentyou - initial API and implementation |
| */ |
| package org.eclipse.sensinact.gateway.protocol.ssdp.model; |
| |
| /** |
| * Factorisation of some field available in the {@link ResponseMessage} and {@link NotifyMessage} |
| */ |
| public abstract class SSDPReceivedMessage extends SSDPMessage { |
| protected int maxAge; |
| protected String location; |
| protected String usn; |
| protected String server; |
| |
| public int getMaxAge() { |
| return maxAge; |
| } |
| |
| public void setMaxAge(int maxAge) { |
| this.maxAge = maxAge; |
| } |
| |
| public String getLocation() { |
| return location; |
| } |
| |
| public void setLocation(String location) { |
| this.location = location; |
| } |
| |
| public String getUsn() { |
| return usn; |
| } |
| |
| public void setUsn(String usn) { |
| this.usn = usn; |
| } |
| |
| public String getServer() { |
| return server; |
| } |
| |
| public void setServer(String server) { |
| this.server = server; |
| } |
| } |