View Javadoc

1   /*
2    * Copyright (c) 2005, The K-Wf Grid Consortium
3    * Fraunhofer Institute for Computer Architecture and Software Technology
4    * See http://www.kwfgrid.eu and http://www.first.fraunhofer.de for more details.
5    */
6   package net.kwfgrid.gwes.uiproxy;
7   
8   /**
9      Interface for a message codec. This allows the UIProxy to unmarshal and marshal messages.
10   */
11  public interface MessageCodec {
12      /**
13         Unmarshal a message from it's specification.
14       */
15      Object unmarshal(String spec) throws CodecException;
16      /**
17         Marshal a message to a specification.
18       */
19      String marshal(Object message) throws CodecException;
20  }