Return data contained in a SockJS "message" and "close" frames. Otherwise
for SockJS "open" and "close" frames, which do not contain data, return
{@code null}.

@return a {@link java.lang.String} object.
10909
public String getFrameData() {
        if (SockJsFrameType.OPEN == getType() || SockJsFrameType.HEARTBEAT == getType()) {
            return null;
        } else {
            return getContent().substring(1);
        }
    }
756530
public static MessageEmit getMessageObj(final HttpServletRequest request,
                                          final String messageObjAttrName) {
    if (messageObjAttrName == null) {
      // don't set
      return null;
    }

    HttpSession sess = request.getSession(false);

    if (sess == null) {
      logger.error("No session!!!!!!!");
      return null;
    }

    Object o = sess.getAttribute(messageObjAttrName);
    if ((o != null) && (o instanceof MessageEmit)) {
      return (MessageEmit)o;
    }

    return null;
  }
675754
public Object get(String strKey)
    {
        Object data = null;
        if (this.getMessageFieldDesc(strKey) != null)
            data = this.getMessageFieldDesc(strKey).get();
        else if (this.getMessage() != null)
            data = this.getMessage().getNative(this.getFullKey(strKey));
        return data;
    }
825840
public byte[] getRawData() throws IOException
    {
        int contentLength = request.getContentLength();
        if( contentLength<0 ) {
            return null;
        }
        
        byte[] buffer = new byte[contentLength];
        ServletInputStream is = request.getInputStream();
        for (int i = 0; i < contentLength; ) {
            int rLen = is.read(buffer, i, contentLength - i);
            if ( rLen == -1 ) {
                break;
            }
            
            i += rLen;
        }
        
        return buffer;
    }
710565
public String getBody() {
        JsonNode body=getBodyJson();
        if(body!=null) {
            return body.toString();
        } else {
            return null;
        }
    }
894431
public byte[] getContentBytes() throws IOException {
        if (content == null)
            return null;

        DerInputStream dis = new DerInputStream(content.toByteArray());
        return dis.getOctetString();
    }
77323
final protected HttpResponseMessageImpl getResponseImpl() {
        if (null == getMyResponse()) {
            if (getObjectFactory() == null) {
                return null;
            }
            setMyResponse(getObjectFactory().getResponse(this));
        }
        return getMyResponse();
    }
450500
public String getContent() {
        String content = attrMixin.getAttribute(CONTENT);
        return content.isEmpty() ? null : content;
    }
677888
public byte[] getBytes()
	{
		byte b[] = new byte[getLength()];
		int bytesCopied = 0;

		Iterator<V> it = this.values().iterator();
		while (it.hasNext())
		{
			ID3v2Frame frame = (ID3v2Frame) it.next();
			System.arraycopy(frame.getFrameBytes(), 0, b, bytesCopied, frame.getFrameLength());
			bytesCopied += frame.getFrameLength();
		}

		return b;
	}
276898
public String getValue() {
		Object value = getData();
		if (value != null) {
			return value.toString();
		}

		String text = getText();
		return text == null ? NO_VALUE : text;
	}
893093
@Restricted(DoNotUse.class)
    public static String getFrom() {
        String from = null, returnValue = null;
        final StaplerRequest request = Stapler.getCurrentRequest();

        // Try to obtain a return point either from the Session
        // or from the QueryParameter in this order
        if (request != null
                && request.getSession(false) != null) {
            from = (String) request.getSession().getAttribute("from");
        } else if (request != null) {
            from = request.getParameter("from");
        }

        // If entry point was not found, try to deduce it from the request URI
        // except pages related to login process
        if (from == null
                && request != null
                && request.getRequestURI() != null
                && !request.getRequestURI().equals("/loginError")
                && !request.getRequestURI().equals("/login")) {

                from = request.getRequestURI();
        }

        // If deduced entry point isn't deduced yet or the content is a blank value
        // use the root web point "/" as a fallback
        from = StringUtils.defaultIfBlank(from, "/").trim();
        
        // Encode the return value
        try {
            returnValue = java.net.URLEncoder.encode(from, "UTF-8");
        } catch (UnsupportedEncodingException e) { }

        // Return encoded value or at least "/" in the case exception occurred during encode()
        // or if the encoded content is blank value
        return StringUtils.isBlank(returnValue) ? "/" : returnValue;
    }
387668
@Override
    public String getMessage() {
        String message = super.getMessage();
        if (mType != null) {
            message = mType.getName() + ": " + message;
        }
        return message;
    }
1178465
@Override
    public String getMessage() {
        if (message_ != null) {
            return message_;
        }

        if (getCause() != null) {
            return getCause().getMessage();
        }

        switch (code_) {
            case UNSPECIFIED_ERR:
                return "unknown error";
            case NOT_SUPPORTED_ERR:
                return "not supported";
            case SYNTAX_ERR:
                return "syntax error";
            default:
                return null;
        }
    }
1137713
public Object get(String strKey)
    {
        if (m_mxProperties != null)
        {
            for (int i = 0; i < m_mxProperties.length; i++)
            {
                if (strKey != null)
                    if (strKey.equalsIgnoreCase((String)m_mxProperties[i][MessageConstants.NAME]))
                        return m_mxProperties[i][MessageConstants.VALUE];
            }
        }
        return null;    // Not found
    }
418662
public @Nullable InputStream getInputStream() {
    if (mInputStreamSupplier != null) {
      return mInputStreamSupplier.get();
    }
    CloseableReference<PooledByteBuffer> pooledByteBufferRef =
        CloseableReference.cloneOrNull(mPooledByteBufferRef);
    if (pooledByteBufferRef != null) {
      try {
        return new PooledByteBufferInputStream(pooledByteBufferRef.get());
      } finally {
        CloseableReference.closeSafely(pooledByteBufferRef);
      }
    }
    return null;
  }
825629
public Object getNextData()
    {
        if (m_iCurrentIndex >= m_string.length())
            m_iCurrentIndex = -1;
        if (m_iCurrentIndex == -1)
            return null;    // EOF
        int iLength = m_string.charAt(m_iCurrentIndex);
        m_iCurrentIndex++;      // Bump past the length
        String strNext = m_string.substring(m_iCurrentIndex, m_iCurrentIndex + iLength);
        m_iCurrentIndex += iLength;   // Bump past the string
        return strNext;
    }
1348696
public byte[] getMessage() {
        byte result[] = new byte[3 + m_length];
        int offset = 0;

        result[offset++] = (byte)(m_length + 2);
        result[offset++] = (byte)m_slaveId;
        result[offset++] = (byte)m_status;
        if (m_length > 0) {
            System.arraycopy(m_data, 0, result, offset, m_length - 2);
        }

        return result;
    }