org.jclouds.cloudstack.config
Class CloudStackParserModule.PortForwardingRuleAdapter

java.lang.Object
  extended by org.jclouds.cloudstack.config.CloudStackParserModule.PortForwardingRuleAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<PortForwardingRule>, com.google.gson.JsonSerializer<PortForwardingRule>
Enclosing class:
CloudStackParserModule

@Singleton
public static class CloudStackParserModule.PortForwardingRuleAdapter
extends Object
implements com.google.gson.JsonSerializer<PortForwardingRule>, com.google.gson.JsonDeserializer<PortForwardingRule>


Constructor Summary
CloudStackParserModule.PortForwardingRuleAdapter()
           
 
Method Summary
 PortForwardingRule apply(org.jclouds.cloudstack.config.CloudStackParserModule.PortForwardingRuleAdapter.PortForwardingRuleInternal in)
           
 PortForwardingRule deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
           
 com.google.gson.JsonElement serialize(PortForwardingRule src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudStackParserModule.PortForwardingRuleAdapter

public CloudStackParserModule.PortForwardingRuleAdapter()
Method Detail

serialize

public com.google.gson.JsonElement serialize(PortForwardingRule src,
                                             Type typeOfSrc,
                                             com.google.gson.JsonSerializationContext context)
Specified by:
serialize in interface com.google.gson.JsonSerializer<PortForwardingRule>

deserialize

public PortForwardingRule deserialize(com.google.gson.JsonElement json,
                                      Type typeOfT,
                                      com.google.gson.JsonDeserializationContext context)
                               throws com.google.gson.JsonParseException
Specified by:
deserialize in interface com.google.gson.JsonDeserializer<PortForwardingRule>
Throws:
com.google.gson.JsonParseException

apply

public PortForwardingRule apply(org.jclouds.cloudstack.config.CloudStackParserModule.PortForwardingRuleAdapter.PortForwardingRuleInternal in)


Copyright © 2009-2012 jclouds. All Rights Reserved.