Examples of StatusImpl


Examples of com.sun.xml.ws.security.trust.impl.elements.StatusImpl

    public Claims createClaims() throws WSTrustException {
        return new ClaimsImpl();
    }
   
    public Status createStatus(String code, String reason){
        return new StatusImpl(code, reason);
    }
View Full Code Here

Examples of com.sun.xml.ws.security.trust.impl.wssx.elements.StatusImpl

    public Claims createClaims() throws WSTrustException {
        return new ClaimsImpl();
    }
   
    public Status createStatus(String code, String reason){
        return new StatusImpl(code, reason);
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

    @Override
    public RegisterResponse handleRegister(final RegisterMessage register, final String uaid) {
        final String channelId = register.getChannelId();
        final String endpointToken = generateEndpointToken(uaid, channelId);
        final boolean saved = store.saveChannel(new DefaultChannel(uaid, channelId, endpointToken));
        final Status status = saved ? new StatusImpl(200, "OK") : new StatusImpl(409, "Conflict: channeld [" + channelId + " is already in use");
        return new RegisterResponseImpl(channelId, status, makeEndpointUrl(endpointToken));
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

    @Override
    public UnregisterResponse handleUnregister(final UnregisterMessage unregister, final String uaid) {
        final String channelId = unregister.getChannelId();
        try {
            removeChannel(channelId, uaid);
            return new UnregisterResponseImpl(channelId, new StatusImpl(200, "OK"));
        } catch (final Exception e) {
            return new UnregisterResponseImpl(channelId, new StatusImpl(500, "Could not remove the channel"));
        }
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

        public RegisterResponseImpl deserialize(final JsonParser jp, final DeserializationContext ctxt)
                throws IOException {
            final ObjectCodec oc = jp.getCodec();
            final JsonNode node = oc.readTree(jp);
            return new RegisterResponseImpl(node.get(RegisterMessage.CHANNEL_ID_FIELD).asText(),
                    new StatusImpl(node.get(RegisterResponseImpl.STATUS_FIELD).asInt(), "N/A"),
                    node.get(RegisterResponseImpl.PUSH_ENDPOINT__FIELD).asText());
        }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

        public UnregisterResponseImpl deserialize(final JsonParser jp, final DeserializationContext ctxt)
                throws IOException {
            final ObjectCodec oc = jp.getCodec();
            final JsonNode node = oc.readTree(jp);
            final JsonNode channelIdNode = node.get(RegisterResponse.CHANNEL_ID_FIELD);
            return new UnregisterResponseImpl(channelIdNode.asText(), new StatusImpl(node.get(UnregisterResponse.STATUS_FIELD).asInt(), "N/A"));
        }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

    @Override
    public RegisterResponse handleRegister(final RegisterMessage register, final String uaid) {
        final String channelId = register.getChannelId();
        final String endpointToken = generateEndpointToken(uaid, channelId);
        final boolean saved = store.saveChannel(new DefaultChannel(uaid, channelId, endpointToken));
        final Status status = saved ? new StatusImpl(200, "OK") : new StatusImpl(409, "Conflict: channeld [" + channelId + " is already in use");
        return new RegisterResponseImpl(channelId, status, makeEndpointUrl(endpointToken));
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.protocol.impl.StatusImpl

    @Override
    public UnregisterResponse handleUnregister(final UnregisterMessage unregister, final String uaid) {
        final String channelId = unregister.getChannelId();
        try {
            removeChannel(channelId, uaid);
            return new UnregisterResponseImpl(channelId, new StatusImpl(200, "OK"));
        } catch (final Exception e) {
            return new UnregisterResponseImpl(channelId, new StatusImpl(500, "Could not remove the channel"));
        }
    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.StatusImpl

@DiscriminatorValue("Solid")
public class SolidRun extends RunImpl {

  public SolidRun() {
    setPlatformType(PlatformType.SOLID);
    setStatus(new StatusImpl());
    setSecurityProfile(new SecurityProfile());
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.StatusImpl

    setSecurityProfile(new SecurityProfile());
  }

  public SolidRun(User user) {
    setPlatformType(PlatformType.SOLID);
    setStatus(new StatusImpl());
    setSecurityProfile(new SecurityProfile(user));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.