001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018 019 package org.apache.hadoop.yarn.api.records.timeline; 020 021 import javax.xml.bind.annotation.XmlAccessType; 022 import javax.xml.bind.annotation.XmlAccessorType; 023 import javax.xml.bind.annotation.XmlElement; 024 import javax.xml.bind.annotation.XmlRootElement; 025 026 import org.apache.hadoop.classification.InterfaceAudience.Public; 027 import org.apache.hadoop.classification.InterfaceStability.Unstable; 028 029 /** 030 * The response of delegation token related request 031 */ 032 @XmlRootElement(name = "delegationtoken") 033 @XmlAccessorType(XmlAccessType.NONE) 034 @Public 035 @Unstable 036 public class TimelineDelegationTokenResponse { 037 038 private String type; 039 private Object content; 040 041 public TimelineDelegationTokenResponse() { 042 043 } 044 045 @XmlElement(name = "type") 046 public String getType() { 047 return type; 048 } 049 050 public void setType(String type) { 051 this.type = type; 052 } 053 054 @XmlElement(name = "content") 055 public Object getContent() { 056 return content; 057 } 058 059 public void setContent(Object content) { 060 this.content = content; 061 } 062 063 }