/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ServiceResponse.java,v 1.2 2009/11/13 21:54:35 ak138937 Exp $
*
*/
/*
* Portions Copyrighted [2011] [ForgeRock AS]
*/
/**
* This class represents the format of the service response object.
* This should be passed to service that accepts request and process it.
* Clients must pass this response while executing the service.
* Upon successful execution, services place the result in this object.
*
*/
/** Creates a new instance of ServiceResponse */
public ServiceResponse() {
}
/**
* Creates new <code>ServiceResponse</code> with the given
* status and result.
*
* @param status status of the performed service.
* @param res result of the performed service.
*/
}
/**
* Sets the status of the service execution.
*
* @param status status of the executed service.
*/
}
/**
* Returns the status the executed service.
*
* @return status of the executed service.
*/
}
/**
* Sets the result of the service execution.
*
* @param result result of the executed service.
*/
}
/**
* Returns the result of the executed service.
*
* @return result of the executed service.
*/
return toResponseStr(result);
}
/**
* Returns the specific result of the executed service.
*
* @param idx Index of the result string.
* @return specific result of the executed service.
*/
}
/**
* Sets the message of the service execution.
*
* @param msg message of the executed service.
*/
}
/**
* Returns the message of the executed service.
*
* @return message of the executed service.
*/
return toResponseStr(msg);
}
/**
* Sets the warning of the service execution.
*
* @param warning Warning of the executed service.
*/
}
/**
* Returns the warning of the executed service.
*
* @return warning of the executed service.
*/
return toResponseStr(warning);
}
/**
* Sets the error of the service execution.
*
* @param error warning of the executed service.
*/
}
/**
* Returns the error of the executed service.
*
* @return error of the executed service.
*/
return toResponseStr(error);
}
}
}
break;
}
}
return status;
}
}