Revision 6653
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/dataone/MNodeService.java | ||
---|---|---|
953 | 953 |
*/ |
954 | 954 |
@Override |
955 | 955 |
public InputStream getReplica(Session session, Identifier pid) |
956 |
throws NotAuthorized, NotImplemented, ServiceFailure { |
|
956 |
throws NotAuthorized, NotImplemented, ServiceFailure, InvalidToken {
|
|
957 | 957 |
|
958 | 958 |
logMetacat.info("MNodeService.getReplica() called."); |
959 | 959 |
|
960 |
// cannot be called by public |
|
961 |
if (session == null) { |
|
962 |
throw new InvalidToken("2183", "No session was provided."); |
|
963 |
} |
|
964 |
|
|
960 | 965 |
logMetacat.info("MNodeService.getReplica() called with parameters: \n" + |
961 | 966 |
"\tSession.Subject = " + session.getSubject().getValue() + "\n" + |
962 | 967 |
"\tIdentifier = " + pid.getValue()); |
Also available in: Unified diff
throw InvalidToken when session is null