/** * Create an instance of {@link EndpointReferenceType } * */ public EndpointReferenceType createEndpointReferenceType() { return new EndpointReferenceType(); }
/** * Create an instance of {@link EndpointReferenceType } * */ public EndpointReferenceType createEndpointReferenceType() { return new EndpointReferenceType(); }
public static EndpointReferenceType getEndpointReference(AttributedURIType address) { EndpointReferenceType reference = new EndpointReferenceType(); reference.setAddress(address); return reference; }
/** * Create an endpoint reference for the provided address. * @param address - address URI * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getEndpointReference(String address) { EndpointReferenceType reference = new EndpointReferenceType(); setAddress(reference, address); return reference; }
public static EndpointReferenceType getEndpointReference(AttributedURIType address) { EndpointReferenceType reference = new EndpointReferenceType(); reference.setAddress(address); return reference; }
/** * Create an anonymous endpoint reference. * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getAnonymousEndpointReference() { final EndpointReferenceType reference = new EndpointReferenceType(); setAddress(reference, ANONYMOUS_ADDRESS); return reference; }
/** * Create an endpoint reference for the provided address. * @param address - address URI * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getEndpointReference(String address) { EndpointReferenceType reference = new EndpointReferenceType(); setAddress(reference, address); return reference; }
/** * Create an anonymous endpoint reference. * @return EndpointReferenceType - the endpoint reference */ public static EndpointReferenceType getAnonymousEndpointReference() { final EndpointReferenceType reference = new EndpointReferenceType(); setAddress(reference, ANONYMOUS_ADDRESS); return reference; }
private static EndpointReferenceType getAnonymousEndpointReference() { final EndpointReferenceType reference = new EndpointReferenceType(); final AttributedURIType a = new AttributedURIType(); a.setValue(EndpointReferenceUtils.ANONYMOUS_ADDRESS); reference.setAddress(a); return reference; }
static EndpointReferenceType createReference(EndpointInfo ei) { EndpointReferenceType epr = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(ei.getAddress()); epr.setAddress(address); return epr; }
public final EndpointReferenceType getTargetReference(EndpointReferenceType t) { EndpointReferenceType ref = null; if (null == t) { ref = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(getAddress()); ref.setAddress(address); } else { ref = t; } return ref; }
private EndpointReferenceType createReference(final EndpointInfo ei) { final EndpointReferenceType epr = new EndpointReferenceType(); final AttributedURIType address = new AttributedURIType(); address.setValue(ei.getAddress()); epr.setAddress(address); return epr; }
public final EndpointReferenceType getTargetReference(EndpointReferenceType t) { EndpointReferenceType ref = null; if (null == t) { ref = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(getAddress()); ref.setAddress(address); } else { ref = t; } return ref; }
EndpointReferenceType createReference(EndpointInfo ei) { EndpointReferenceType epr = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(ei.getAddress()); epr.setAddress(address); return epr; }
EndpointReferenceType createReference(EndpointInfo ei) { EndpointReferenceType epr = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(ei.getAddress()); epr.setAddress(address); return epr; }
EndpointReferenceType createReference(EndpointInfo ei) { EndpointReferenceType epr = new EndpointReferenceType(); AttributedURIType address = new AttributedURIType(); address.setValue(ei.getAddress()); epr.setAddress(address); return epr; }
public MAPEndpoint newEndpoint(String address) { EndpointReferenceType implementation = new EndpointReferenceType(); AttributedURIType uri = new AttributedURIType(); uri.setValue(address); implementation.setAddress(uri); return new CXFMAPEndpoint(implementation); }
/** * Create a duplicate endpoint reference sharing all atributes * @param ref the reference to duplicate * @return EndpointReferenceType - the duplicate endpoint reference */ public static EndpointReferenceType duplicate(EndpointReferenceType ref) { EndpointReferenceType reference = new EndpointReferenceType(); reference.setMetadata(ref.getMetadata()); reference.getAny().addAll(ref.getAny()); reference.setAddress(ref.getAddress()); return reference; }
/** * Create a duplicate endpoint reference sharing all atributes * @param ref the reference to duplicate * @return EndpointReferenceType - the duplicate endpoint reference */ public static EndpointReferenceType duplicate(EndpointReferenceType ref) { EndpointReferenceType reference = new EndpointReferenceType(); reference.setMetadata(ref.getMetadata()); reference.getAny().addAll(ref.getAny()); reference.setAddress(ref.getAddress()); return reference; }
@Override public CreateResponse create(Create body) { Representation representation = body.getRepresentation(); ValidAndTransformHelper.validationAndTransformation( getResourceTypeIdentifiers(), representation, null); ReferenceParametersType refParams = getManager().create(representation); CreateResponse response = new CreateResponse(); response.setResourceCreated(new EndpointReferenceType()); response.getResourceCreated().setReferenceParameters(refParams); response.setRepresentation(body.getRepresentation()); return response; }