net.floodlightcontroller.core.web
Class ControllerSwitchesResource.SwitchJsonSerializerWrapper
java.lang.Object
net.floodlightcontroller.core.web.ControllerSwitchesResource.SwitchJsonSerializerWrapper
- Enclosing class:
- ControllerSwitchesResource
public static class ControllerSwitchesResource.SwitchJsonSerializerWrapper
- extends java.lang.Object
A wrapper class around IOFSwitch that defines the REST serialization
fields. Could have written a Jackson serializer but this is easier.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControllerSwitchesResource.SwitchJsonSerializerWrapper
public ControllerSwitchesResource.SwitchJsonSerializerWrapper(IOFSwitch sw)
getActions
public int getActions()
getAttributes
public java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
getDescription
public java.util.Map<java.lang.String,java.lang.String> getDescription()
getBuffers
public int getBuffers()
getCapabilities
public int getCapabilities()
getConnectedSince
public long getConnectedSince()
getDpid
public java.lang.String getDpid()
getHarole
public java.lang.String getHarole()
getInetAddress
public java.lang.String getInetAddress()
getPorts
public java.util.Collection<OFPhysicalPort> getPorts()