org.jclouds.cloudstack.config
Class CloudStackParserModule.FirewallRuleAdapter
java.lang.Object
org.jclouds.cloudstack.config.CloudStackParserModule.FirewallRuleAdapter
- All Implemented Interfaces:
- com.google.gson.JsonDeserializer<FirewallRule>, com.google.gson.JsonSerializer<FirewallRule>
- Enclosing class:
- CloudStackParserModule
@Singleton
public static class CloudStackParserModule.FirewallRuleAdapter
- extends Object
- implements com.google.gson.JsonSerializer<FirewallRule>, com.google.gson.JsonDeserializer<FirewallRule>
Method Summary |
FirewallRule |
apply(org.jclouds.cloudstack.config.CloudStackParserModule.FirewallRuleAdapter.FirewallRuleInternal in)
|
FirewallRule |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context)
|
com.google.gson.JsonElement |
serialize(FirewallRule 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 |
CloudStackParserModule.FirewallRuleAdapter
public CloudStackParserModule.FirewallRuleAdapter()
serialize
public com.google.gson.JsonElement serialize(FirewallRule src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context)
- Specified by:
serialize
in interface com.google.gson.JsonSerializer<FirewallRule>
deserialize
public FirewallRule 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<FirewallRule>
- Throws:
com.google.gson.JsonParseException
apply
public FirewallRule apply(org.jclouds.cloudstack.config.CloudStackParserModule.FirewallRuleAdapter.FirewallRuleInternal in)
Copyright © 2009-2012 jclouds. All Rights Reserved.