org.fcrepo.server.messaging
Class AtomAPIMMessage

java.lang.Object
  extended by org.fcrepo.server.messaging.AtomAPIMMessage
All Implemented Interfaces:
APIMMessage, FedoraMessage

public class AtomAPIMMessage
extends Object
implements APIMMessage

Representation of an API-M method call as an Atom entry.

Since:
3.0
Version:
$Id$
Author:
Edwin Shin
See Also:
The Atom Syndication Format

Constructor Summary
AtomAPIMMessage(FedoraMethod method, String fedoraBaseUrl, String serverVersion, String format)
           
AtomAPIMMessage(String messageText)
           
 
Method Summary
 String getAuthor()
           
 String getBaseUrl()
          
 Date getDate()
          
 String getFormat()
          An identifier for the serialization format of the message.
 String getMethodName()
          
 String getPID()
          
 String getServerVersion()
          Version of the Fedora server that produced the message (version.major + version.minor), e.g.
 String toString()
          Serialization of the API-M message as an Atom entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomAPIMMessage

public AtomAPIMMessage(FedoraMethod method,
                       String fedoraBaseUrl,
                       String serverVersion,
                       String format)
                throws MessagingException
Throws:
MessagingException

AtomAPIMMessage

public AtomAPIMMessage(String messageText)
Method Detail

toString

public String toString()
Serialization of the API-M message as an Atom entry.

Overrides:
toString in class Object

getBaseUrl

public String getBaseUrl()

Specified by:
getBaseUrl in interface APIMMessage
Returns:
the Base URL of the Fedora Repository that generated the message, e.g. http://localhost:8080/fedora

getDate

public Date getDate()

Specified by:
getDate in interface APIMMessage
Returns:
the Date object representing the timestamp of the method call

getMethodName

public String getMethodName()

Specified by:
getMethodName in interface APIMMessage
Returns:
the name of the API-M method invoked

getPID

public String getPID()

Specified by:
getPID in interface APIMMessage
Returns:
the PID or null if not applicable for the API-M method

getAuthor

public String getAuthor()

getFormat

public String getFormat()
An identifier for the serialization format of the message.

Specified by:
getFormat in interface FedoraMessage
Returns:

getServerVersion

public String getServerVersion()
Version of the Fedora server that produced the message (version.major + version.minor), e.g. 3.0b2. Messages generated by clients should return the version of the Fedora server the message is intended for.

Specified by:
getServerVersion in interface FedoraMessage
Returns:
Fedora server version


Copyright © 2011 DuraSpace. All Rights Reserved.