* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Construct an instance from an existing instance.
- *
+ *
* @param commonHeader the existing instance
*/
public CommonHeader(CommonHeader commonHeader) {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import java.util.Map;
public class Response implements Serializable {
+
private static final long serialVersionUID = 434953706339865151L;
@SerializedName("CommonHeader")
/**
* Construct an instance from an existing instance.
- *
+ *
* @param request the existing instance
*/
public Response(Request request) {
}
-
}
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Used to copy a common header.
- *
+ *
* @param commonHeader a header that is defined by the lcm api guide that contains information
* about the request (requestId, flags, etc.)
*/
/**
* Get the timestamp.
- *
+ *
* @return the timeStamp
*/
public Instant getTimeStamp() {
/**
* Set the timestamp.
- *
+ *
* @param timeStamp the timeStamp to set
*/
public void setTimeStamp(Instant timeStamp) {
/**
* Get the API version.
- *
+ *
* @return the apiVer
*/
public String getApiVer() {
/**
* Set the API version.
- *
+ *
* @param apiVer the apiVer to set
*/
public void setApiVer(String apiVer) {
/**
* Get the originator Id.
- *
+ *
* @return the originatorId
*/
public String getOriginatorId() {
/**
* Set the originator Id.
- *
+ *
* @param originatorId the originatorId to set
*/
public void setOriginatorId(String originatorId) {
/**
* Get the request Id.
- *
+ *
* @return the requestId
*/
public UUID getRequestId() {
/**
* Set the request Id.
- *
+ *
* @param requestId the requestId to set
*/
public void setRequestId(UUID requestId) {
/**
* Get the sub request Id.
- *
+ *
* @return the subRequestId
*/
public String getSubRequestId() {
/**
* Set the sub request Id.
- *
+ *
* @param subRequestId the subRequestId to set
*/
public void setSubRequestId(String subRequestId) {
/**
* Get the flags.
- *
+ *
* @return the flags
*/
public Map<String, String> getFlags() {
/**
* Set the flags.
- *
+ *
* @param flags the flags to set
*/
public void setFlags(Map<String, String> flags) {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Get the action.
- *
+ *
* @return the action
*/
public String getAction() {
/**
* Set the action.
- *
+ *
* @param action the action to set
*/
public void setAction(String action) {
/**
* Get the action identifiers.
- *
+ *
* @return the actionIdentifiers
*/
public Map<String, String> getActionIdentifiers() {
/**
* Set the action identifiers.
- *
+ *
* @param actionIdentifiers the actionIdentifiers to set
*/
public void setActionIdentifiers(Map<String, String> actionIdentifiers) {
/**
* Get the payload.
- *
+ *
* @return the payload
*/
public String getPayload() {
/**
* Set the payload.
- *
+ *
* @param payload the payload to set
*/
public void setPayload(String payload) {
/**
* Get the common header.
- *
+ *
* @param commonHeader the commonHeader to set
*/
public void setCommonHeader(LcmCommonHeader commonHeader) {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Get the version.
- *
+ *
* @return the version
*/
public String getVersion() {
/**
* Set the version.
- *
+ *
* @param version the version to set
*/
public void setVersion(String version) {
/**
* Get the cambria partition.
- *
+ *
* @return the cambriaPartition
*/
public String getCambriaPartition() {
/**
* Set the cambria partition.
- *
+ *
* @param cambriaPartition the cambriaPartition to set
*/
public void setCambriaPartition(String cambriaPartition) {
/**
* Get the RPN name.
- *
+ *
* @return the rpcName
*/
public String getRpcName() {
/**
* Set the RPC name.
- *
+ *
* @param rpcName the rpcName to set
*/
public void setRpcName(String rpcName) {
/**
* Get the correlation Id.
- *
+ *
* @return the correlationId
*/
public String getCorrelationId() {
/**
* Set the correclation Id.
- *
+ *
* @param correlationId the correlationId to set
*/
public void setCorrelationId(String correlationId) {
/**
* Get the type.
- *
+ *
* @return the type
*/
public String getType() {
/**
* Set the type.
- *
+ *
* @param type the type to set
*/
public void setType(String type) {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Construct an instance from an existing instance.
- *
+ *
* @param op the existing instance
*/
public ControlLoopOperation(ControlLoopOperation op) {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
public class Resource implements Serializable {
private static final long serialVersionUID = -913729158733348027L;
-
+
private UUID resourceUuid;
private UUID resourceInvariantUuid;
private String resourceName;
private String resourceVersion;
private ResourceType resourceType;
-
+
public Resource() {
//Empty Constructor
}
-
+
/**
* Constructor.
- *
+ *
* @param resource copy object
*/
public Resource(Resource resource) {
this.resourceVersion = resource.resourceVersion;
this.resourceType = resource.resourceType;
}
-
+
public Resource(UUID uuid) {
this.resourceUuid = uuid;
}
-
+
public Resource(String name, ResourceType type) {
this.resourceName = name;
this.resourceType = type;
}
-
+
/**
* Constructor.
- *
+ *
* @param uuid uuid
* @param invariantUuid invariant uuid
* @param name name
this.resourceVersion = version;
this.resourceType = type;
}
-
+
public UUID getResourceUuid() {
return resourceUuid;
}
+ ", resourceName=" + resourceName + ", resourceVersion=" + resourceVersion + ", resourceType="
+ resourceType + "]";
}
-
+
@Override
public int hashCode() {
final int prime = 31;
result = prime * result + ((resourceVersion == null) ? 0 : resourceVersion.hashCode());
return result;
}
-
+
@Override
public boolean equals(Object obj) {
if (this == obj) {
}
return true;
}
-
+
}
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import java.util.UUID;
public class ResourceInstance implements Serializable {
+
private static final long serialVersionUID = -5506162340393802424L;
private String resourceInstanceName;
private String resourceName;
- private UUID resourceInvariantUuid;
+ private UUID resourceInvariantUuid;
private String resourceVersion;
private ResourceType resourceType;
- private UUID resourceUuid;
-
+ private UUID resourceUuid;
+
public ResourceInstance() {
//Empty Constructor
}
-
+
/**
* Constructor.
- *
+ *
* @param instance copy object
*/
public ResourceInstance(ResourceInstance instance) {
- if (instance == null) {
+ if (instance == null) {
return;
}
this.resourceInstanceName = instance.resourceInstanceName;
this.resourceType = instance.resourceType;
this.resourceUuid = instance.resourceUuid;
}
-
+
public String getResourceInstanceName() {
return resourceInstanceName;
}
@Override
public String toString() {
return "ResourceInstance [resourceInstanceName=" + resourceInstanceName + ", resourceName=" + resourceName
- + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
- + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
+ + ", resourceInvariantUuid=" + resourceInvariantUuid + ", resourceVersion=" + resourceVersion
+ + ", resourceType=" + resourceType + ", resourceUuid=" + resourceUuid + "]";
}
-
+
@Override
public int hashCode() {
final int prime = 31;
result = prime * result + ((resourceVersion == null) ? 0 : resourceVersion.hashCode());
return result;
}
-
+
@Override
public boolean equals(Object obj) {
if (this == obj) {
}
return true;
}
-
+
}
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
public class Service implements Serializable {
private static final long serialVersionUID = -1249276698549996806L;
-
- private UUID serviceUUID;
- private UUID serviceInvariantUUID;
- private String serviceName;
- private String serviceVersion;
-
+
+ private UUID serviceUUID;
+ private UUID serviceInvariantUUID;
+ private String serviceName;
+ private String serviceVersion;
+
public Service() {
//Empty Constructor
}
-
+
public Service(UUID uuid) {
this.serviceUUID = uuid;
}
-
+
public Service(String name) {
this.serviceName = name;
}
-
+
/**
* Constructor.
- *
+ *
* @param uuid service id
* @param invariantUUID service invariant id
* @param name name
this.serviceName = name;
this.serviceVersion = version;
}
-
+
/**
* Constructor.
- *
+ *
* @param service copy object
*/
public Service(Service service) {
this.serviceName = service.serviceName;
this.serviceVersion = service.serviceVersion;
}
-
+
public UUID getServiceUUID() {
return serviceUUID;
}
@Override
public String toString() {
return "Service [serviceUUID=" + serviceUUID + ", serviceInvariantUUID=" + serviceInvariantUUID
- + ", serviceName=" + serviceName + ", serviceVersion=" + serviceVersion + "]";
+ + ", serviceName=" + serviceName + ", serviceVersion=" + serviceVersion + "]";
}
-
+
@Override
public int hashCode() {
final int prime = 31;
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
import java.util.UUID;
public class ServiceInstance implements Serializable {
+
private static final long serialVersionUID = 6285260780966679625L;
- private UUID personaModelUUID;
- private UUID serviceUUID;
- private UUID serviceInstanceUUID;
- private UUID widgetModelUUID;
- private String widgetModelVersion;
- private String serviceName;
- private String serviceInstanceName;
-
+ private UUID personaModelUUID;
+ private UUID serviceUUID;
+ private UUID serviceInstanceUUID;
+ private UUID widgetModelUUID;
+ private String widgetModelVersion;
+ private String serviceName;
+ private String serviceInstanceName;
+
public ServiceInstance() {
//Empty Constructor
}
-
+
/**
* Constructor.
- *
+ *
* @param instance copy object
*/
public ServiceInstance(ServiceInstance instance) {
this.serviceName = instance.serviceName;
this.serviceInstanceName = instance.serviceInstanceName;
}
-
+
public UUID getPersonaModelUUID() {
return personaModelUUID;
}
@Override
public String toString() {
return "ServiceInstance [personaModelUUID=" + personaModelUUID + ", serviceUUID=" + serviceUUID
- + ", serviceInstanceUUID=" + serviceInstanceUUID + ", widgetModelUUID=" + widgetModelUUID
- + ", widgetModelVersion=" + widgetModelVersion + ", serviceName=" + serviceName
- + ", serviceInstanceName=" + serviceInstanceName + "]";
+ + ", serviceInstanceUUID=" + serviceInstanceUUID + ", widgetModelUUID=" + widgetModelUUID
+ + ", widgetModelVersion=" + widgetModelVersion + ", serviceName=" + serviceName
+ + ", serviceInstanceName=" + serviceInstanceName + "]";
}
-
+
@Override
public int hashCode() {
final int prime = 31;
result = prime * result + ((widgetModelVersion == null) ? 0 : widgetModelVersion.hashCode());
return result;
}
-
+
@Override
public boolean equals(Object obj) {
if (this == obj) {
}
return true;
}
-
+
}
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
-import java.util.List;
public class SdncResponseOutput implements Serializable {
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Used to copy a pci common header.
- *
+ *
* @param commonHeader a header that is defined by the Pci api guide that contains information
* about the request (requestId, flags, etc.)
*/
/**
* Get the timestamp.
- *
+ *
* @return the timeStamp
*/
public Instant getTimeStamp() {
/**
* Set the timestamp.
- *
+ *
* @param timeStamp
* the timeStamp to set
*/
/**
* Get the API version.
- *
+ *
* @return the apiVer
*/
public String getApiVer() {
/**
* Set the API version.
- *
+ *
* @param apiVer
* the apiVer to set
*/
/**
* Get the request Id.
- *
+ *
* @return the requestId
*/
public UUID getRequestId() {
/**
* Set the request Id.
- *
+ *
* @param requestId
* the requestId to set
*/
/**
* Get the sub request Id.
- *
+ *
* @return the subRequestId
*/
public String getSubRequestId() {
/**
* Set the sub request Id.
- *
+ *
* @param subRequestId
* the subRequestId to set
*/
}
/**
* Set the request track.
- *
+ *
* @param requestTrack
* the requestTrack to set
*/
}
/**
* Get the request track.
- *
+ *
* @return the requestTrack
*/
public Map<String, String> getRequestTrack() {
/**
* Get the flags.
- *
+ *
* @return the flags
*/
public Map<String, String> getFlags() {
/**
* Set the flags.
- *
+ *
* @param flags
* the flags to set
*/
@Override
public String toString() {
- return "CommonHeader [timeStamp=" + timeStamp + ", apiVer=" + apiVer
+ return "CommonHeader [timeStamp=" + timeStamp + ", apiVer=" + apiVer
+ ", requestId=" + requestId + ", subRequestId=" + subRequestId + ", requestTrack=" + requestTrack
+ ", flags=" + flags + "]";
}
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/**
* Get the version.
- *
+ *
* @return the version
*/
public String getVersion() {
/**
* Set the version.
- *
- * @param version
- * the version to set
+ *
+ * @param version the version to set
*/
public void setVersion(String version) {
this.version = version;
/**
* Get the cambria partition.
- *
+ *
* @return the cambriaPartition
*/
public String getCambriaPartition() {
/**
* Set the cambria partition.
- *
- * @param cambriaPartition
- * the cambriaPartition to set
+ *
+ * @param cambriaPartition the cambriaPartition to set
*/
public void setCambriaPartition(String cambriaPartition) {
this.cambriaPartition = cambriaPartition;
/**
* Get the RPN name.
- *
+ *
* @return the rpcName
*/
public String getRpcName() {
/**
* Set the RPC name.
- *
- * @param rpcName
- * the rpcName to set
+ *
+ * @param rpcName the rpcName to set
*/
public void setRpcName(String rpcName) {
this.rpcName = rpcName;
/**
* Get the correlation Id.
- *
+ *
* @return the correlationId
*/
public String getCorrelationId() {
/**
* Set the correclation Id.
- *
- * @param correlationId
- * the correlationId to set
+ *
+ * @param correlationId the correlationId to set
*/
public void setCorrelationId(String correlationId) {
this.correlationId = correlationId;
/**
* Get the type.
- *
+ *
* @return the type
*/
public String getType() {
/**
* Set the type.
- *
- * @param type
- * the type to set
+ *
+ * @param type the type to set
*/
public void setType(String type) {
this.type = type;
@Override
public String toString() {
return "Wrapper [version=" + version + ", cambriaPartition=" + cambriaPartition + ", rpcName=" + rpcName
- + ", correlationId=" + correlationId + ", type=" + type + "]";
+ + ", correlationId=" + correlationId + ", type=" + type + "]";
}
@Override
/**
* Constructor.
- *
+ *
* @param soRequestDetails copy object
*/
public SoRequestDetails(SoRequestDetails soRequestDetails) {
@Override
public String toString() {
return "SORequestDetails [modelInfo=" + modelInfo + ", cloudConfiguration=" + cloudConfiguration
- + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
- + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
- + ", configurationParameters=" + configurationParameters + "]";
+ + ", requestInfo=" + requestInfo + ", subscriberInfo=" + subscriberInfo
+ + ", relatedInstanceList=" + relatedInstanceList + ", requestParameters=" + requestParameters
+ + ", configurationParameters=" + configurationParameters + "]";
}
}
import javax.ws.rs.core.Response;
@Path("/SO")
-public class SoDummyServerTest {
+public class SoDummyServer {
private static int postMessagesReceived = 0;
private static int putMessagesReceived = 0;
*/
@BeforeClass
public static void setUp() throws IOException {
- final ResourceConfig rc = new ResourceConfig(SoDummyServerTest.class);
+ final ResourceConfig rc = new ResourceConfig(SoDummyServer.class);
//Grizzly by default doesn't allow payload for HTTP methods (ex: DELETE), for which HTTP spec doesn't
// explicitly state that.
//allow it before starting the server
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.