info.sswap.http.representation
Class Message

java.lang.Object
  extended by info.sswap.http.representation.Message
Direct Known Subclasses:
EntityMessage

public class Message
extends java.lang.Object

A base class for messages exchanged between the client and HTTP API. Such a message typically consists of a prefix definition, imports definition, and a few more message-specific parts.

Author:
Blazej Bulka

Field Summary
private  Imports imports
          The information about ontologies that should be imported.
private  Prefixes prefixes
          The definitions of prefixes for this message.
 
Constructor Summary
Message()
           
Message(Prefixes prefixes, Imports imports)
          Creates a new message with the specified prefixes and imports.
 
Method Summary
 Imports getImports()
           
 Prefixes getPrefixes()
          Gets the definitions of prefixes for this message.
 void setImports(Imports imports)
           
 void setPrefixes(Prefixes prefixes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

prefixes

private Prefixes prefixes
The definitions of prefixes for this message.


imports

private Imports imports
The information about ontologies that should be imported.

Constructor Detail

Message

public Message()

Message

public Message(Prefixes prefixes,
               Imports imports)
Creates a new message with the specified prefixes and imports.

Parameters:
prefixes - the definitions of prefixes for this message
imports - the list of imports in this message.
Method Detail

getPrefixes

public Prefixes getPrefixes()
Gets the definitions of prefixes for this message.

Returns:
the map of namespace prefix

setPrefixes

public void setPrefixes(Prefixes prefixes)

getImports

public Imports getImports()

setImports

public void setImports(Imports imports)


Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin.